Searched refs:boilerplate (Results 1 - 23 of 23) sorted by relevance

/external/v8/src/
H A Dcompilation-cache.cc98 void Put(Handle<String> source, Handle<JSFunction> boilerplate);
101 bool HasOrigin(Handle<JSFunction> boilerplate,
120 Handle<JSFunction> boilerplate);
205 bool CompilationCacheScript::HasOrigin(Handle<JSFunction> boilerplate, argument
210 Handle<Script>(Script::cast(boilerplate->shared()->script()));
211 // If the script name isn't set, the boilerplate script should have
244 Handle<JSFunction> boilerplate = Handle<JSFunction>::cast(probe); local
245 // Break when we've found a suitable boilerplate function that
247 if (HasOrigin(boilerplate, name, line_offset, column_offset)) {
248 result = *boilerplate;
284 Put(Handle<String> source, Handle<JSFunction> boilerplate) argument
323 Put(Handle<String> source, Handle<Context> context, Handle<JSFunction> boilerplate) argument
411 PutScript(Handle<String> source, Handle<JSFunction> boilerplate) argument
422 PutEval(Handle<String> source, Handle<Context> context, bool is_global, Handle<JSFunction> boilerplate) argument
[all...]
H A Dcompilation-cache.h40 // Finds the script function boilerplate for a source
48 // Finds the function boilerplate for a source string for eval in a
60 // Associate the (source, kind) pair to the boilerplate. This may
63 Handle<JSFunction> boilerplate);
66 // with the boilerplate. This may overwrite an existing mapping.
70 Handle<JSFunction> boilerplate);
H A Dfactory.cc286 Handle<JSFunction> boilerplate,
289 ASSERT(boilerplate->IsBoilerplate());
290 ASSERT(!boilerplate->has_initial_map());
291 ASSERT(!boilerplate->has_prototype());
292 ASSERT(boilerplate->properties() == Heap::empty_fixed_array());
293 ASSERT(boilerplate->elements() == Heap::empty_fixed_array());
295 boilerplate->shared(),
303 Handle<JSFunction> boilerplate,
307 boilerplate, Top::function_map(), pretenure);
309 int number_of_literals = boilerplate
285 BaseNewFunctionFromBoilerplate( Handle<JSFunction> boilerplate, Handle<Map> function_map, PretenureFlag pretenure) argument
302 NewFunctionFromBoilerplate( Handle<JSFunction> boilerplate, Handle<Context> context, PretenureFlag pretenure) argument
[all...]
H A Druntime.cc99 static Object* DeepCopyBoilerplate(JSObject* boilerplate) { argument
103 Object* result = Heap::CopyJSObject(boilerplate);
198 CONVERT_CHECKED(JSObject, boilerplate, args[0]);
199 return DeepCopyBoilerplate(boilerplate);
204 CONVERT_CHECKED(JSObject, boilerplate, args[0]);
205 return Heap::CopyJSObject(boilerplate);
264 Handle<JSObject> boilerplate = Factory::NewJSObjectFromMap(map); local
265 { // Add the constant properties to the boilerplate.
267 OptimizedObjectForAddingMultipleProperties opt(boilerplate,
286 result = SetProperty(boilerplate, nam
794 Handle<JSFunction> boilerplate = Handle<JSFunction>::cast(value); local
[all...]
H A Dfactory.h221 Handle<JSFunction> boilerplate,
378 Handle<JSFunction> boilerplate,
H A Dbootstrapper.cc882 Handle<JSFunction> boilerplate; local
886 if (cache == NULL || !cache->Lookup(name, &boilerplate)) {
889 boilerplate = Compiler::Compile(
898 if (boilerplate.is_null()) return false;
899 if (cache != NULL) cache->Add(name, boilerplate);
911 Factory::NewFunctionFromBoilerplate(boilerplate, context);
H A Dast.h784 // An object literal has a boilerplate object that is used
1442 explicit FunctionBoilerplateLiteral(Handle<JSFunction> boilerplate) argument
1443 : boilerplate_(boilerplate) {
1444 ASSERT(boilerplate->IsBoilerplate());
1447 Handle<JSFunction> boilerplate() const { return boilerplate_; } function in class:v8::internal::FunctionBoilerplateLiteral
H A Dtop.cc585 Handle<JSObject> boilerplate = local
587 Handle<Object> exception = Copy(boilerplate);
H A Ddebug.cc685 Handle<JSFunction> boilerplate; local
686 boilerplate = Compiler::Compile(source_code,
697 if (boilerplate.is_null()) {
703 // Execute the boilerplate function in the debugger context.
707 Factory::NewFunctionFromBoilerplate(boilerplate, context);
H A Dprettyprinter.cc233 PrintLiteral(node->boilerplate(), true);
924 PrintLiteralIndented("BOILERPLATE", node->boilerplate(), true);
H A Dparser.cc221 // Decide if a property should be in the object boilerplate.
227 // in the object literal boilerplate.
738 // function. Includes regexp literals, and boilerplate for object
1957 // Instantiate the function and create a boilerplate function from it.
1962 Handle<JSFunction> boilerplate = local
1964 boilerplate->shared()->set_construct_stub(*construct_stub);
1966 // Copy the function data to the boilerplate. Used by
1969 boilerplate->shared()->set_function_data(fun->shared()->function_data());
1971 boilerplate->shared()->set_formal_parameter_count(parameters);
1977 NEW(FunctionBoilerplateLiteral(boilerplate));
[all...]
H A Dapi.cc1139 i::Handle<i::JSFunction> boilerplate = local
1148 has_pending_exception = boilerplate.is_null();
1150 return Local<Script>(ToApi<Script>(boilerplate));
1171 i::Handle<i::JSFunction> boilerplate = Utils::OpenHandle(*generic);
1173 i::Factory::NewFunctionFromBoilerplate(boilerplate,
H A Dheap.cc2322 // allocate them based on an arguments boilerplate.
2328 JSObject* boilerplate = local
2331 // Check that the size of the boilerplate matches our
2334 ASSERT(kArgumentsObjectSize == boilerplate->map()->instance_size());
2341 // Copy the content. The arguments boilerplate doesn't have any
2345 reinterpret_cast<Object**>(boilerplate->address()),
/external/v8/test/cctest/
H A Dtest-compiler.cc117 Handle<JSFunction> boilerplate = Compiler::Compile(source_code, local
125 return Factory::NewFunctionFromBoilerplate(boilerplate,
/external/v8/src/arm/
H A Dcodegen-arm.h346 // Instantiate the function boilerplate.
347 void InstantiateBoilerplate(Handle<JSFunction> boilerplate);
H A Dfull-codegen-arm.cc667 // Build the function boilerplate and instantiate it.
668 Handle<JSFunction> boilerplate = local
672 ASSERT(boilerplate->IsBoilerplate());
675 __ mov(r0, Operand(boilerplate));
H A Dcodegen-arm.cc2309 void CodeGenerator::InstantiateBoilerplate(Handle<JSFunction> boilerplate) { argument
2311 ASSERT(boilerplate->IsBoilerplate());
2313 __ mov(r0, Operand(boilerplate));
2316 if (scope()->is_function_scope() && boilerplate->NumberOfLiterals() == 0) {
2338 // Build the function boilerplate and instantiate it.
2339 Handle<JSFunction> boilerplate = local
2346 InstantiateBoilerplate(boilerplate);
2358 InstantiateBoilerplate(node->boilerplate());
2816 // boilerplate object.
2819 // in the boilerplate objec
[all...]
/external/v8/src/ia32/
H A Dcodegen-ia32.h539 // Instantiate the function boilerplate.
540 Result InstantiateBoilerplate(Handle<JSFunction> boilerplate);
H A Dfull-codegen-ia32.cc778 // Build the function boilerplate and instantiate it.
779 Handle<JSFunction> boilerplate = local
783 ASSERT(boilerplate->IsBoilerplate());
787 __ push(Immediate(boilerplate));
H A Dcodegen-ia32.cc4052 Result CodeGenerator::InstantiateBoilerplate(Handle<JSFunction> boilerplate) { argument
4053 ASSERT(boilerplate->IsBoilerplate());
4062 if (scope()->is_function_scope() && boilerplate->NumberOfLiterals() == 0) {
4064 frame()->EmitPush(Immediate(boilerplate));
4067 // Call the runtime to instantiate the function boilerplate
4070 frame()->EmitPush(Immediate(boilerplate));
4079 // Build the function boilerplate and instantiate it.
4080 Handle<JSFunction> boilerplate = local
4084 Result result = InstantiateBoilerplate(boilerplate);
4092 Result result = InstantiateBoilerplate(node->boilerplate());
4501 DeferredRegExpLiteral(Register boilerplate, Register literals, RegExpLiteral* node) argument
4549 Result boilerplate = allocator_->Allocate(); local
[all...]
/external/v8/src/x64/
H A Dcodegen-x64.cc2233 void CodeGenerator::InstantiateBoilerplate(Handle<JSFunction> boilerplate) { argument
2234 ASSERT(boilerplate->IsBoilerplate());
2243 if (scope()->is_function_scope() && boilerplate->NumberOfLiterals() == 0) {
2245 frame_->Push(boilerplate);
2249 // Call the runtime to instantiate the function boilerplate
2252 frame_->EmitPush(boilerplate);
2262 // Build the function boilerplate and instantiate it.
2263 Handle<JSFunction> boilerplate = local
2267 InstantiateBoilerplate(boilerplate);
2274 InstantiateBoilerplate(node->boilerplate());
2341 DeferredRegExpLiteral(Register boilerplate, Register literals, RegExpLiteral* node) argument
2389 Result boilerplate = allocator_->Allocate(); local
[all...]
H A Dcodegen-x64.h523 // Instantiate the function boilerplate.
524 void InstantiateBoilerplate(Handle<JSFunction> boilerplate);
H A Dfull-codegen-x64.cc781 // Build the function boilerplate and instantiate it.
782 Handle<JSFunction> boilerplate = local
786 ASSERT(boilerplate->IsBoilerplate());
790 __ Push(boilerplate);

Completed in 2842 milliseconds