Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(97)

Side by Side Diff: src/builtins.h

Issue 1756973002: Reland "[api] Don't go to javascript to construct API functions" (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/builtins.cc » ('j') | src/execution.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 Handle<HeapObject> function, Handle<Object> receiver, int argc, 401 bool is_construct, Handle<HeapObject> function, Handle<Object> receiver,
402 Handle<Object> args[]); 402 int argc, 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
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_
OLDNEW
« no previous file with comments | « no previous file | src/builtins.cc » ('j') | src/execution.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698