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

Side by Side Diff: src/compiler/raw-machine-assembler.cc

Issue 1294133004: [Interpreter] Pass context to interpreter bytecode handlers and add LoadConstextSlot (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 4 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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/compiler/raw-machine-assembler.h" 5 #include "src/compiler/raw-machine-assembler.h"
6 6
7 #include "src/code-factory.h" 7 #include "src/code-factory.h"
8 #include "src/compiler/pipeline.h" 8 #include "src/compiler/pipeline.h"
9 #include "src/compiler/scheduler.h" 9 #include "src/compiler/scheduler.h"
10 10
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 227
228 Node* call = graph()->NewNode(common()->Call(descriptor), function, arg0, 228 Node* call = graph()->NewNode(common()->Call(descriptor), function, arg0,
229 arg1, arg2, arg3, arg4, arg5, arg6, arg7); 229 arg1, arg2, arg3, arg4, arg5, arg6, arg7);
230 schedule()->AddNode(CurrentBlock(), call); 230 schedule()->AddNode(CurrentBlock(), call);
231 return call; 231 return call;
232 } 232 }
233 233
234 234
235 Node* RawMachineAssembler::TailCallInterpreterDispatch( 235 Node* RawMachineAssembler::TailCallInterpreterDispatch(
236 const CallDescriptor* call_descriptor, Node* target, Node* arg1, Node* arg2, 236 const CallDescriptor* call_descriptor, Node* target, Node* arg1, Node* arg2,
237 Node* arg3, Node* arg4, Node* arg5) { 237 Node* arg3, Node* arg4, Node* arg5, Node* arg6) {
238 Node* tail_call = 238 Node* tail_call = graph()->NewNode(common()->TailCall(call_descriptor),
239 graph()->NewNode(common()->TailCall(call_descriptor), target, arg1, arg2, 239 target, arg1, arg2, arg3, arg4, arg5, arg6,
240 arg3, arg4, arg5, graph()->start(), graph()->start()); 240 graph()->start(), graph()->start());
241 schedule()->AddTailCall(CurrentBlock(), tail_call); 241 schedule()->AddTailCall(CurrentBlock(), tail_call);
242 return tail_call; 242 return tail_call;
243 } 243 }
244 244
245 245
246 void RawMachineAssembler::Bind(Label* label) { 246 void RawMachineAssembler::Bind(Label* label) {
247 DCHECK(current_block_ == nullptr); 247 DCHECK(current_block_ == nullptr);
248 DCHECK(!label->bound_); 248 DCHECK(!label->bound_);
249 label->bound_ = true; 249 label->bound_ = true;
250 current_block_ = EnsureBlock(label); 250 current_block_ = EnsureBlock(label);
(...skipping 23 matching lines...) Expand all
274 DCHECK_NOT_NULL(schedule_); 274 DCHECK_NOT_NULL(schedule_);
275 DCHECK(current_block_ != nullptr); 275 DCHECK(current_block_ != nullptr);
276 Node* node = graph()->NewNode(op, input_count, inputs); 276 Node* node = graph()->NewNode(op, input_count, inputs);
277 schedule()->AddNode(CurrentBlock(), node); 277 schedule()->AddNode(CurrentBlock(), node);
278 return node; 278 return node;
279 } 279 }
280 280
281 } // namespace compiler 281 } // namespace compiler
282 } // namespace internal 282 } // namespace internal
283 } // namespace v8 283 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698