| 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 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 378 | 378 |
| 379 const char* name(int index) { | 379 const char* name(int index) { |
| 380 DCHECK(index >= 0); | 380 DCHECK(index >= 0); |
| 381 DCHECK(index < builtin_count); | 381 DCHECK(index < builtin_count); |
| 382 return names_[index]; | 382 return names_[index]; |
| 383 } | 383 } |
| 384 | 384 |
| 385 bool is_initialized() const { return initialized_; } | 385 bool is_initialized() const { return initialized_; } |
| 386 | 386 |
| 387 MUST_USE_RESULT static MaybeHandle<Object> InvokeApiFunction( | 387 MUST_USE_RESULT static MaybeHandle<Object> InvokeApiFunction( |
| 388 Handle<HeapObject> function, Handle<Object> receiver, int argc, | 388 Handle<JSFunction> function, Handle<Object> receiver, int argc, |
| 389 Handle<Object> args[]); | 389 Handle<Object> args[]); |
| 390 | 390 |
| 391 private: | 391 private: |
| 392 Builtins(); | 392 Builtins(); |
| 393 | 393 |
| 394 // The external C++ functions called from the code. | 394 // The external C++ functions called from the code. |
| 395 static Address const c_functions_[cfunction_count]; | 395 static Address const c_functions_[cfunction_count]; |
| 396 | 396 |
| 397 // Note: These are always Code objects, but to conform with | 397 // Note: These are always Code objects, but to conform with |
| 398 // IterateBuiltins() above which assumes Object**'s for the callback | 398 // IterateBuiltins() above which assumes Object**'s for the callback |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 602 friend class BuiltinFunctionTable; | 602 friend class BuiltinFunctionTable; |
| 603 friend class Isolate; | 603 friend class Isolate; |
| 604 | 604 |
| 605 DISALLOW_COPY_AND_ASSIGN(Builtins); | 605 DISALLOW_COPY_AND_ASSIGN(Builtins); |
| 606 }; | 606 }; |
| 607 | 607 |
| 608 } // namespace internal | 608 } // namespace internal |
| 609 } // namespace v8 | 609 } // namespace v8 |
| 610 | 610 |
| 611 #endif // V8_BUILTINS_H_ | 611 #endif // V8_BUILTINS_H_ |
| OLD | NEW |