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

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

Issue 6541051: Unifying the handling of storing and loading from safepoint stack (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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 | Annotate | Revision Log
« no previous file with comments | « src/x64/assembler-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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 2602 matching lines...) Expand 10 before | Expand all | Expand 10 after
2613 __ push(index); 2613 __ push(index);
2614 } 2614 }
2615 __ movq(rsi, Operand(rbp, StandardFrameConstants::kContextOffset)); 2615 __ movq(rsi, Operand(rbp, StandardFrameConstants::kContextOffset));
2616 __ CallRuntimeSaveDoubles(Runtime::kStringCharCodeAt); 2616 __ CallRuntimeSaveDoubles(Runtime::kStringCharCodeAt);
2617 RecordSafepointWithRegisters( 2617 RecordSafepointWithRegisters(
2618 instr->pointer_map(), 2, Safepoint::kNoDeoptimizationIndex); 2618 instr->pointer_map(), 2, Safepoint::kNoDeoptimizationIndex);
2619 if (FLAG_debug_code) { 2619 if (FLAG_debug_code) {
2620 __ AbortIfNotSmi(rax); 2620 __ AbortIfNotSmi(rax);
2621 } 2621 }
2622 __ SmiToInteger32(rax, rax); 2622 __ SmiToInteger32(rax, rax);
2623 __ movq(Operand(rsp, Register::ToRspIndexForPushAll(result) * kPointerSize), 2623 __ StoreToSafepointRegisterSlot(result, rax);
2624 rax);
2625 __ PopSafepointRegisters(); 2624 __ PopSafepointRegisters();
2626 } 2625 }
2627 2626
2628 2627
2629 void LCodeGen::DoStringLength(LStringLength* instr) { 2628 void LCodeGen::DoStringLength(LStringLength* instr) {
2630 Register string = ToRegister(instr->string()); 2629 Register string = ToRegister(instr->string());
2631 Register result = ToRegister(instr->result()); 2630 Register result = ToRegister(instr->result());
2632 __ movq(result, FieldOperand(string, String::kLengthOffset)); 2631 __ movq(result, FieldOperand(string, String::kLengthOffset));
2633 } 2632 }
2634 2633
(...skipping 598 matching lines...) Expand 10 before | Expand all | Expand 10 after
3233 RegisterEnvironmentForDeoptimization(environment); 3232 RegisterEnvironmentForDeoptimization(environment);
3234 ASSERT(osr_pc_offset_ == -1); 3233 ASSERT(osr_pc_offset_ == -1);
3235 osr_pc_offset_ = masm()->pc_offset(); 3234 osr_pc_offset_ = masm()->pc_offset();
3236 } 3235 }
3237 3236
3238 #undef __ 3237 #undef __
3239 3238
3240 } } // namespace v8::internal 3239 } } // namespace v8::internal
3241 3240
3242 #endif // V8_TARGET_ARCH_X64 3241 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/assembler-x64.cc ('k') | src/x64/macro-assembler-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698