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

Side by Side Diff: src/builtins.h

Issue 1679683004: Revert of Do not eagerly instantiate accessors' JSFunction. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 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 | « src/arm64/code-stubs-arm64.cc ('k') | src/builtins.cc » ('j') | no next file with comments »
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 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « src/arm64/code-stubs-arm64.cc ('k') | src/builtins.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698