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

Unified Diff: src/compiler/raw-machine-assembler.cc

Issue 1239793002: [interpreter] Add basic framework for bytecode handler code generation. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add comment to count macro. Created 5 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 side-by-side diff with in-line comments
Download patch
Index: src/compiler/raw-machine-assembler.cc
diff --git a/src/compiler/raw-machine-assembler.cc b/src/compiler/raw-machine-assembler.cc
index 1a3d6494e93d07225e9c304e5339ddf67738296c..218097b388745e501768f57895ec2ca291f20ae7 100644
--- a/src/compiler/raw-machine-assembler.cc
+++ b/src/compiler/raw-machine-assembler.cc
@@ -2,9 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "src/compiler/raw-machine-assembler.h"
+
#include "src/code-factory.h"
#include "src/compiler/pipeline.h"
-#include "src/compiler/raw-machine-assembler.h"
#include "src/compiler/scheduler.h"
namespace v8 {
@@ -124,6 +125,18 @@ Node* RawMachineAssembler::CallJS0(Node* function, Node* receiver,
}
+Node* RawMachineAssembler::CallInterpreterHandler(Node* target_handler,
+ Node* bytecodes,
+ Node* dispatch_table) {
+ CallDescriptor* descriptor =
+ Linkage::GetInterpreterDispatchDescriptor(zone(), false);
+ Node* call = graph()->NewNode(common()->Call(descriptor),
+ target_handler, bytecodes, dispatch_table);
+ schedule()->AddNode(CurrentBlock(), call);
+ return call;
+}
+
+
Node* RawMachineAssembler::CallRuntime1(Runtime::FunctionId function,
Node* arg0, Node* context,
Node* frame_state) {

Powered by Google App Engine
This is Rietveld 408576698