| 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 345 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  356  |  356  | 
|  357   const char* name(int index) { |  357   const char* name(int index) { | 
|  358     DCHECK(index >= 0); |  358     DCHECK(index >= 0); | 
|  359     DCHECK(index < builtin_count); |  359     DCHECK(index < builtin_count); | 
|  360     return names_[index]; |  360     return names_[index]; | 
|  361   } |  361   } | 
|  362  |  362  | 
|  363   bool is_initialized() const { return initialized_; } |  363   bool is_initialized() const { return initialized_; } | 
|  364  |  364  | 
|  365   MUST_USE_RESULT static MaybeHandle<Object> InvokeApiFunction( |  365   MUST_USE_RESULT static MaybeHandle<Object> InvokeApiFunction( | 
|  366       Handle<JSFunction> function, Handle<Object> receiver, int argc, |  366       Handle<HeapObject> function, Handle<Object> receiver, int argc, | 
|  367       Handle<Object> args[]); |  367       Handle<Object> args[]); | 
|  368  |  368  | 
|  369  private: |  369  private: | 
|  370   Builtins(); |  370   Builtins(); | 
|  371  |  371  | 
|  372   // The external C++ functions called from the code. |  372   // The external C++ functions called from the code. | 
|  373   static Address const c_functions_[cfunction_count]; |  373   static Address const c_functions_[cfunction_count]; | 
|  374  |  374  | 
|  375   // Note: These are always Code objects, but to conform with |  375   // Note: These are always Code objects, but to conform with | 
|  376   // IterateBuiltins() above which assumes Object**'s for the callback |  376   // IterateBuiltins() above which assumes Object**'s for the callback | 
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  528   friend class BuiltinFunctionTable; |  528   friend class BuiltinFunctionTable; | 
|  529   friend class Isolate; |  529   friend class Isolate; | 
|  530  |  530  | 
|  531   DISALLOW_COPY_AND_ASSIGN(Builtins); |  531   DISALLOW_COPY_AND_ASSIGN(Builtins); | 
|  532 }; |  532 }; | 
|  533  |  533  | 
|  534 }  // namespace internal |  534 }  // namespace internal | 
|  535 }  // namespace v8 |  535 }  // namespace v8 | 
|  536  |  536  | 
|  537 #endif  // V8_BUILTINS_H_ |  537 #endif  // V8_BUILTINS_H_ | 
| OLD | NEW |