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

Side by Side Diff: src/builtins/builtins.cc

Issue 2158303002: Begin porting CallSite to C++ (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@remove-overflow-boilerplate
Patch Set: Rebase Created 4 years, 5 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 #include "src/builtins/builtins.h" 5 #include "src/builtins/builtins.h"
6 #include "src/builtins/builtins-utils.h" 6 #include "src/builtins/builtins-utils.h"
7 7
8 #include "src/api-arguments.h" 8 #include "src/api-arguments.h"
9 #include "src/api-natives.h" 9 #include "src/api-natives.h"
10 #include "src/code-factory.h" 10 #include "src/code-factory.h"
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 } 136 }
137 137
138 // ES6 section 25.3.1.4 Generator.prototype.throw ( exception ) 138 // ES6 section 25.3.1.4 Generator.prototype.throw ( exception )
139 void Builtins::Generate_GeneratorPrototypeThrow(CodeStubAssembler* assembler) { 139 void Builtins::Generate_GeneratorPrototypeThrow(CodeStubAssembler* assembler) {
140 Generate_GeneratorPrototypeResume(assembler, JSGeneratorObject::kThrow, 140 Generate_GeneratorPrototypeResume(assembler, JSGeneratorObject::kThrow,
141 "[Generator].prototype.throw"); 141 "[Generator].prototype.throw");
142 } 142 }
143 143
144 // ----------------------------------------------------------------------------- 144 // -----------------------------------------------------------------------------
145 145
146 // -----------------------------------------------------------------------------
147
146 // 148 //
147 149
148 namespace { 150 namespace {
149 151
150 // Returns the holder JSObject if the function can legally be called with this 152 // Returns the holder JSObject if the function can legally be called with this
151 // receiver. Returns nullptr if the call is illegal. 153 // receiver. Returns nullptr if the call is illegal.
152 // TODO(dcarney): CallOptimization duplicates this logic, merge. 154 // TODO(dcarney): CallOptimization duplicates this logic, merge.
153 JSObject* GetCompatibleReceiver(Isolate* isolate, FunctionTemplateInfo* info, 155 JSObject* GetCompatibleReceiver(Isolate* isolate, FunctionTemplateInfo* info,
154 JSObject* receiver) { 156 JSObject* receiver) {
155 Object* recv_type = info->signature(); 157 Object* recv_type = info->signature();
(...skipping 1098 matching lines...) Expand 10 before | Expand all | Expand 10 after
1254 #define DEFINE_BUILTIN_ACCESSOR(Name, ...) \ 1256 #define DEFINE_BUILTIN_ACCESSOR(Name, ...) \
1255 Handle<Code> Builtins::Name() { \ 1257 Handle<Code> Builtins::Name() { \
1256 Code** code_address = reinterpret_cast<Code**>(builtin_address(k##Name)); \ 1258 Code** code_address = reinterpret_cast<Code**>(builtin_address(k##Name)); \
1257 return Handle<Code>(code_address); \ 1259 return Handle<Code>(code_address); \
1258 } 1260 }
1259 BUILTIN_LIST_ALL(DEFINE_BUILTIN_ACCESSOR) 1261 BUILTIN_LIST_ALL(DEFINE_BUILTIN_ACCESSOR)
1260 #undef DEFINE_BUILTIN_ACCESSOR 1262 #undef DEFINE_BUILTIN_ACCESSOR
1261 1263
1262 } // namespace internal 1264 } // namespace internal
1263 } // namespace v8 1265 } // namespace v8
OLDNEW
« no previous file with comments | « src/builtins/builtins.h ('k') | src/builtins/builtins-callsite.cc » ('j') | src/js/messages.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698