| OLD | NEW | 
|---|
| 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  Loading... | 
| 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  Loading... | 
| 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 | 
| OLD | NEW | 
|---|