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

Unified Diff: src/x64/macro-assembler-x64.cc

Issue 140060: Enable code generation for array literals.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 6 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
« no previous file with comments | « src/x64/macro-assembler-x64.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/x64/macro-assembler-x64.cc
===================================================================
--- src/x64/macro-assembler-x64.cc (revision 2231)
+++ src/x64/macro-assembler-x64.cc (working copy)
@@ -45,6 +45,14 @@
}
+// TODO(x64): For now, the write barrier is disabled on x64 and we
+// therefore generate no code. This should be fixed when the write
+// barrier is enabled.
+void MacroAssembler::RecordWrite(Register object, int offset,
+ Register value, Register scratch) {
+}
+
+
void MacroAssembler::Assert(Condition cc, const char* msg) {
if (FLAG_debug_code) Check(cc, msg);
}
@@ -350,6 +358,21 @@
}
+void MacroAssembler::CmpHeapObject(Register heap_object_reg,
+ Handle<Object> heap_object) {
+ ASSERT(heap_object->IsHeapObject());
+ movq(kScratchRegister, heap_object, RelocInfo::EMBEDDED_OBJECT);
+ cmpq(heap_object_reg, kScratchRegister);
+}
+
+
+void MacroAssembler::PushHeapObject(Handle<Object> heap_object) {
+ ASSERT(heap_object->IsHeapObject());
+ movq(kScratchRegister, heap_object, RelocInfo::EMBEDDED_OBJECT);
+ push(kScratchRegister);
+}
+
+
void MacroAssembler::CmpObjectType(Register heap_object,
InstanceType type,
Register map) {
« no previous file with comments | « src/x64/macro-assembler-x64.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698