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

Side by Side Diff: src/x64/lithium-codegen-x64.cc

Issue 43333003: Move movq(Register, ExternalReference) into X64 MacroAssembler (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « src/x64/debug-x64.cc ('k') | src/x64/macro-assembler-x64.h » ('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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 __ bind(&jump_table_[i].label); 254 __ bind(&jump_table_[i].label);
255 Address entry = jump_table_[i].address; 255 Address entry = jump_table_[i].address;
256 Deoptimizer::BailoutType type = jump_table_[i].bailout_type; 256 Deoptimizer::BailoutType type = jump_table_[i].bailout_type;
257 int id = Deoptimizer::GetDeoptimizationId(isolate(), entry, type); 257 int id = Deoptimizer::GetDeoptimizationId(isolate(), entry, type);
258 if (id == Deoptimizer::kNotDeoptimizationEntry) { 258 if (id == Deoptimizer::kNotDeoptimizationEntry) {
259 Comment(";;; jump table entry %d.", i); 259 Comment(";;; jump table entry %d.", i);
260 } else { 260 } else {
261 Comment(";;; jump table entry %d: deoptimization bailout %d.", i, id); 261 Comment(";;; jump table entry %d: deoptimization bailout %d.", i, id);
262 } 262 }
263 if (jump_table_[i].needs_frame) { 263 if (jump_table_[i].needs_frame) {
264 __ movq(kScratchRegister, ExternalReference::ForDeoptEntry(entry)); 264 __ Move(kScratchRegister, ExternalReference::ForDeoptEntry(entry));
265 if (needs_frame.is_bound()) { 265 if (needs_frame.is_bound()) {
266 __ jmp(&needs_frame); 266 __ jmp(&needs_frame);
267 } else { 267 } else {
268 __ bind(&needs_frame); 268 __ bind(&needs_frame);
269 __ push(rbp); 269 __ push(rbp);
270 __ movq(rbp, rsp); 270 __ movq(rbp, rsp);
271 __ push(rsi); 271 __ push(rsi);
272 // This variant of deopt can only be used with stubs. Since we don't 272 // This variant of deopt can only be used with stubs. Since we don't
273 // have a function pointer to install in the stack frame that we're 273 // have a function pointer to install in the stack frame that we're
274 // building, install a special marker there instead. 274 // building, install a special marker there instead.
(...skipping 5180 matching lines...) Expand 10 before | Expand all | Expand 10 after
5455 FixedArray::kHeaderSize - kPointerSize)); 5455 FixedArray::kHeaderSize - kPointerSize));
5456 __ bind(&done); 5456 __ bind(&done);
5457 } 5457 }
5458 5458
5459 5459
5460 #undef __ 5460 #undef __
5461 5461
5462 } } // namespace v8::internal 5462 } } // namespace v8::internal
5463 5463
5464 #endif // V8_TARGET_ARCH_X64 5464 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/debug-x64.cc ('k') | src/x64/macro-assembler-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698