| 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 613 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 624   return isolate->heap()->ToBoolean(frame->IsConstructor()); | 624   return isolate->heap()->ToBoolean(frame->IsConstructor()); | 
| 625 } | 625 } | 
| 626 | 626 | 
| 627 | 627 | 
| 628 RUNTIME_FUNCTION(Runtime_IsFunction) { | 628 RUNTIME_FUNCTION(Runtime_IsFunction) { | 
| 629   SealHandleScope shs(isolate); | 629   SealHandleScope shs(isolate); | 
| 630   DCHECK(args.length() == 1); | 630   DCHECK(args.length() == 1); | 
| 631   CONVERT_ARG_CHECKED(Object, obj, 0); | 631   CONVERT_ARG_CHECKED(Object, obj, 0); | 
| 632   return isolate->heap()->ToBoolean(obj->IsJSFunction()); | 632   return isolate->heap()->ToBoolean(obj->IsJSFunction()); | 
| 633 } | 633 } | 
|  | 634 | 
|  | 635 | 
|  | 636 RUNTIME_FUNCTION(Runtime_ThrowStrongModeTooFewArguments) { | 
|  | 637   HandleScope scope(isolate); | 
|  | 638   DCHECK(args.length() == 0); | 
|  | 639   THROW_NEW_ERROR_RETURN_FAILURE(isolate, | 
|  | 640                                  NewTypeError("strong_mode_too_few_arguments", | 
|  | 641                                               HandleVector<Object>(NULL, 0))); | 
|  | 642 } | 
| 634 } | 643 } | 
| 635 }  // namespace v8::internal | 644 }  // namespace v8::internal | 
| OLD | NEW | 
|---|