| 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 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 391 | 391 |
| 392 const char* name(int index) { | 392 const char* name(int index) { |
| 393 DCHECK(index >= 0); | 393 DCHECK(index >= 0); |
| 394 DCHECK(index < builtin_count); | 394 DCHECK(index < builtin_count); |
| 395 return names_[index]; | 395 return names_[index]; |
| 396 } | 396 } |
| 397 | 397 |
| 398 bool is_initialized() const { return initialized_; } | 398 bool is_initialized() const { return initialized_; } |
| 399 | 399 |
| 400 MUST_USE_RESULT static MaybeHandle<Object> InvokeApiFunction( | 400 MUST_USE_RESULT static MaybeHandle<Object> InvokeApiFunction( |
| 401 bool is_construct, Handle<HeapObject> function, Handle<Object> receiver, | 401 Handle<HeapObject> function, Handle<Object> receiver, int argc, |
| 402 int argc, Handle<Object> args[]); | 402 Handle<Object> args[]); |
| 403 | 403 |
| 404 private: | 404 private: |
| 405 Builtins(); | 405 Builtins(); |
| 406 | 406 |
| 407 // The external C++ functions called from the code. | 407 // The external C++ functions called from the code. |
| 408 static Address const c_functions_[cfunction_count]; | 408 static Address const c_functions_[cfunction_count]; |
| 409 | 409 |
| 410 // Note: These are always Code objects, but to conform with | 410 // Note: These are always Code objects, but to conform with |
| 411 // IterateBuiltins() above which assumes Object**'s for the callback | 411 // IterateBuiltins() above which assumes Object**'s for the callback |
| 412 // function f, we use an Object* array here. | 412 // function f, we use an Object* array here. |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 623 friend class BuiltinFunctionTable; | 623 friend class BuiltinFunctionTable; |
| 624 friend class Isolate; | 624 friend class Isolate; |
| 625 | 625 |
| 626 DISALLOW_COPY_AND_ASSIGN(Builtins); | 626 DISALLOW_COPY_AND_ASSIGN(Builtins); |
| 627 }; | 627 }; |
| 628 | 628 |
| 629 } // namespace internal | 629 } // namespace internal |
| 630 } // namespace v8 | 630 } // namespace v8 |
| 631 | 631 |
| 632 #endif // V8_BUILTINS_H_ | 632 #endif // V8_BUILTINS_H_ |
| OLD | NEW |