| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 #ifndef V8_BUILTINS_H_ | 5 #ifndef V8_BUILTINS_H_ |
| 6 #define V8_BUILTINS_H_ | 6 #define V8_BUILTINS_H_ |
| 7 | 7 |
| 8 #include "src/base/flags.h" | 8 #include "src/base/flags.h" |
| 9 #include "src/handles.h" | 9 #include "src/handles.h" |
| 10 | 10 |
| (...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 440 | 440 |
| 441 const char* name(int index) { | 441 const char* name(int index) { |
| 442 DCHECK(index >= 0); | 442 DCHECK(index >= 0); |
| 443 DCHECK(index < builtin_count); | 443 DCHECK(index < builtin_count); |
| 444 return names_[index]; | 444 return names_[index]; |
| 445 } | 445 } |
| 446 | 446 |
| 447 bool is_initialized() const { return initialized_; } | 447 bool is_initialized() const { return initialized_; } |
| 448 | 448 |
| 449 MUST_USE_RESULT static MaybeHandle<Object> InvokeApiFunction( | 449 MUST_USE_RESULT static MaybeHandle<Object> InvokeApiFunction( |
| 450 Handle<HeapObject> function, Handle<Object> receiver, int argc, | 450 Isolate* isolate, Handle<HeapObject> function, Handle<Object> receiver, |
| 451 Handle<Object> args[]); | 451 int argc, Handle<Object> args[]); |
| 452 | 452 |
| 453 private: | 453 private: |
| 454 Builtins(); | 454 Builtins(); |
| 455 | 455 |
| 456 // The external C++ functions called from the code. | 456 // The external C++ functions called from the code. |
| 457 static Address const c_functions_[cfunction_count]; | 457 static Address const c_functions_[cfunction_count]; |
| 458 | 458 |
| 459 // Note: These are always Code objects, but to conform with | 459 // Note: These are always Code objects, but to conform with |
| 460 // IterateBuiltins() above which assumes Object**'s for the callback | 460 // IterateBuiltins() above which assumes Object**'s for the callback |
| 461 // function f, we use an Object* array here. | 461 // function f, we use an Object* array here. |
| (...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 748 friend class BuiltinFunctionTable; | 748 friend class BuiltinFunctionTable; |
| 749 friend class Isolate; | 749 friend class Isolate; |
| 750 | 750 |
| 751 DISALLOW_COPY_AND_ASSIGN(Builtins); | 751 DISALLOW_COPY_AND_ASSIGN(Builtins); |
| 752 }; | 752 }; |
| 753 | 753 |
| 754 } // namespace internal | 754 } // namespace internal |
| 755 } // namespace v8 | 755 } // namespace v8 |
| 756 | 756 |
| 757 #endif // V8_BUILTINS_H_ | 757 #endif // V8_BUILTINS_H_ |
| OLD | NEW |