| OLD | NEW | 
|---|
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. | 
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be | 
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. | 
| 4 | 4 | 
| 5 #include "src/v8.h" | 5 #include "src/v8.h" | 
| 6 | 6 | 
| 7 #include "src/accessors.h" | 7 #include "src/accessors.h" | 
| 8 #include "src/arguments.h" | 8 #include "src/arguments.h" | 
| 9 #include "src/compiler.h" | 9 #include "src/compiler.h" | 
| 10 #include "src/cpu-profiler.h" | 10 #include "src/cpu-profiler.h" | 
| (...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 304         DCHECK(!bound->shared()->bound()); | 304         DCHECK(!bound->shared()->bound()); | 
| 305         should_have_prototype = bound->should_have_prototype(); | 305         should_have_prototype = bound->should_have_prototype(); | 
| 306       } | 306       } | 
| 307     } | 307     } | 
| 308     return isolate->heap()->ToBoolean(should_have_prototype); | 308     return isolate->heap()->ToBoolean(should_have_prototype); | 
| 309   } | 309   } | 
| 310   return isolate->heap()->false_value(); | 310   return isolate->heap()->false_value(); | 
| 311 } | 311 } | 
| 312 | 312 | 
| 313 | 313 | 
| 314 RUNTIME_FUNCTION(Runtime_SetInlineBuiltinFlag) { | 314 RUNTIME_FUNCTION(Runtime_SetForceInlineFlag) { | 
| 315   SealHandleScope shs(isolate); | 315   SealHandleScope shs(isolate); | 
| 316   RUNTIME_ASSERT(args.length() == 1); | 316   RUNTIME_ASSERT(args.length() == 1); | 
| 317   CONVERT_ARG_HANDLE_CHECKED(Object, object, 0); | 317   CONVERT_ARG_HANDLE_CHECKED(Object, object, 0); | 
| 318 | 318 | 
| 319   if (object->IsJSFunction()) { | 319   if (object->IsJSFunction()) { | 
| 320     JSFunction* func = JSFunction::cast(*object); | 320     JSFunction* func = JSFunction::cast(*object); | 
| 321     func->shared()->set_inline_builtin(true); | 321     func->shared()->set_force_inline(true); | 
| 322   } | 322   } | 
| 323   return isolate->heap()->undefined_value(); | 323   return isolate->heap()->undefined_value(); | 
| 324 } | 324 } | 
| 325 | 325 | 
| 326 | 326 | 
| 327 // Find the arguments of the JavaScript function invocation that called | 327 // Find the arguments of the JavaScript function invocation that called | 
| 328 // into C++ code. Collect these in a newly allocated array of handles (possibly | 328 // into C++ code. Collect these in a newly allocated array of handles (possibly | 
| 329 // prefixed by a number of empty handles). | 329 // prefixed by a number of empty handles). | 
| 330 static SmartArrayPointer<Handle<Object> > GetCallerArguments(Isolate* isolate, | 330 static SmartArrayPointer<Handle<Object> > GetCallerArguments(Isolate* isolate, | 
| 331                                                              int prefix_argc, | 331                                                              int prefix_argc, | 
| (...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 609 | 609 | 
| 610 | 610 | 
| 611 RUNTIME_FUNCTION(Runtime_ThrowStrongModeTooFewArguments) { | 611 RUNTIME_FUNCTION(Runtime_ThrowStrongModeTooFewArguments) { | 
| 612   HandleScope scope(isolate); | 612   HandleScope scope(isolate); | 
| 613   DCHECK(args.length() == 0); | 613   DCHECK(args.length() == 0); | 
| 614   THROW_NEW_ERROR_RETURN_FAILURE(isolate, | 614   THROW_NEW_ERROR_RETURN_FAILURE(isolate, | 
| 615                                  NewTypeError(MessageTemplate::kStrongArity)); | 615                                  NewTypeError(MessageTemplate::kStrongArity)); | 
| 616 } | 616 } | 
| 617 } | 617 } | 
| 618 }  // namespace v8::internal | 618 }  // namespace v8::internal | 
| OLD | NEW | 
|---|