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

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

Issue 1343363002: [Interpreter] Basic flow control. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Clarify comment and diff reduction. Created 5 years, 3 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.h
diff --git a/src/compiler/raw-machine-assembler.h b/src/compiler/raw-machine-assembler.h
index 7329af0598232a8560c44e9fe272c4b765bda17c..5fe8a90658860df983b5d6b10d5d096aaa617380 100644
--- a/src/compiler/raw-machine-assembler.h
+++ b/src/compiler/raw-machine-assembler.h
@@ -104,6 +104,12 @@ class RawMachineAssembler {
Node* HeapConstant(Handle<HeapObject> object) {
return NewNode(common()->HeapConstant(object));
}
+ Node* BooleanConstant(bool value) {
+ Handle<HeapObject> boolean_value =
+ value ? isolate()->factory()->true_value()
+ : isolate()->factory()->false_value();
+ return NewNode(common()->HeapConstant(boolean_value));
+ }
Node* ExternalConstant(ExternalReference address) {
return NewNode(common()->ExternalConstant(address));
}

Powered by Google App Engine
This is Rietveld 408576698