| 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 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 373 | 373 |
| 374 const char* name(int index) { | 374 const char* name(int index) { |
| 375 DCHECK(index >= 0); | 375 DCHECK(index >= 0); |
| 376 DCHECK(index < builtin_count); | 376 DCHECK(index < builtin_count); |
| 377 return names_[index]; | 377 return names_[index]; |
| 378 } | 378 } |
| 379 | 379 |
| 380 bool is_initialized() const { return initialized_; } | 380 bool is_initialized() const { return initialized_; } |
| 381 | 381 |
| 382 MUST_USE_RESULT static MaybeHandle<Object> InvokeApiFunction( | 382 MUST_USE_RESULT static MaybeHandle<Object> InvokeApiFunction( |
| 383 Handle<JSFunction> function, Handle<Object> receiver, int argc, | 383 Handle<HeapObject> function, Handle<Object> receiver, int argc, |
| 384 Handle<Object> args[]); | 384 Handle<Object> args[]); |
| 385 | 385 |
| 386 private: | 386 private: |
| 387 Builtins(); | 387 Builtins(); |
| 388 | 388 |
| 389 // The external C++ functions called from the code. | 389 // The external C++ functions called from the code. |
| 390 static Address const c_functions_[cfunction_count]; | 390 static Address const c_functions_[cfunction_count]; |
| 391 | 391 |
| 392 // Note: These are always Code objects, but to conform with | 392 // Note: These are always Code objects, but to conform with |
| 393 // IterateBuiltins() above which assumes Object**'s for the callback | 393 // IterateBuiltins() above which assumes Object**'s for the callback |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 586 friend class BuiltinFunctionTable; | 586 friend class BuiltinFunctionTable; |
| 587 friend class Isolate; | 587 friend class Isolate; |
| 588 | 588 |
| 589 DISALLOW_COPY_AND_ASSIGN(Builtins); | 589 DISALLOW_COPY_AND_ASSIGN(Builtins); |
| 590 }; | 590 }; |
| 591 | 591 |
| 592 } // namespace internal | 592 } // namespace internal |
| 593 } // namespace v8 | 593 } // namespace v8 |
| 594 | 594 |
| 595 #endif // V8_BUILTINS_H_ | 595 #endif // V8_BUILTINS_H_ |
| OLD | NEW |