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

Side by Side Diff: src/x64/macro-assembler-x64.cc

Issue 6529055: [Isolates] Merge crankshaft (r5922 from bleeding_edge). (Closed)
Patch Set: Win32 port Created 9 years, 10 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
« no previous file with comments | « src/x64/macro-assembler-x64.h ('k') | src/x64/stub-cache-x64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 cmpq(with, Operand(kRootRegister, index << kPointerSizeLog2)); 67 cmpq(with, Operand(kRootRegister, index << kPointerSizeLog2));
68 } 68 }
69 69
70 70
71 void MacroAssembler::CompareRoot(Operand with, Heap::RootListIndex index) { 71 void MacroAssembler::CompareRoot(Operand with, Heap::RootListIndex index) {
72 LoadRoot(kScratchRegister, index); 72 LoadRoot(kScratchRegister, index);
73 cmpq(with, kScratchRegister); 73 cmpq(with, kScratchRegister);
74 } 74 }
75 75
76 76
77 void MacroAssembler::StackLimitCheck(Label* on_stack_overflow) {
78 CompareRoot(rsp, Heap::kStackLimitRootIndex);
79 j(below, on_stack_overflow);
80 }
81
82
83 void MacroAssembler::RecordWriteHelper(Register object, 77 void MacroAssembler::RecordWriteHelper(Register object,
84 Register addr, 78 Register addr,
85 Register scratch) { 79 Register scratch) {
86 if (FLAG_debug_code) { 80 if (FLAG_debug_code) {
87 // Check that the object is not in new space. 81 // Check that the object is not in new space.
88 NearLabel not_in_new_space; 82 NearLabel not_in_new_space;
89 InNewSpace(object, scratch, not_equal, &not_in_new_space); 83 InNewSpace(object, scratch, not_equal, &not_in_new_space);
90 Abort("new-space object passed to RecordWriteHelper"); 84 Abort("new-space object passed to RecordWriteHelper");
91 bind(&not_in_new_space); 85 bind(&not_in_new_space);
92 } 86 }
(...skipping 2269 matching lines...) Expand 10 before | Expand all | Expand 10 after
2362 CPU::FlushICache(address_, size_); 2356 CPU::FlushICache(address_, size_);
2363 2357
2364 // Check that the code was patched as expected. 2358 // Check that the code was patched as expected.
2365 ASSERT(masm_.pc_ == address_ + size_); 2359 ASSERT(masm_.pc_ == address_ + size_);
2366 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap); 2360 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap);
2367 } 2361 }
2368 2362
2369 } } // namespace v8::internal 2363 } } // namespace v8::internal
2370 2364
2371 #endif // V8_TARGET_ARCH_X64 2365 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/macro-assembler-x64.h ('k') | src/x64/stub-cache-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698