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

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

Issue 712933002: Version 3.29.88.17 (merged r25226) (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.29
Patch Set: Created 6 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/version.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_X87 7 #if V8_TARGET_ARCH_X87
8 8
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/code-factory.h" 10 #include "src/code-factory.h"
(...skipping 4042 matching lines...) Expand 10 before | Expand all | Expand 10 after
4053 X87LoadForUsage(input); 4053 X87LoadForUsage(input);
4054 __ fstp_d(FieldOperand(temp_result, HeapNumber::kValueOffset)); 4054 __ fstp_d(FieldOperand(temp_result, HeapNumber::kValueOffset));
4055 4055
4056 { 4056 {
4057 // Preserve the value of all registers. 4057 // Preserve the value of all registers.
4058 PushSafepointRegistersScope scope(this); 4058 PushSafepointRegistersScope scope(this);
4059 4059
4060 __ mov(esi, Operand(ebp, StandardFrameConstants::kContextOffset)); 4060 __ mov(esi, Operand(ebp, StandardFrameConstants::kContextOffset));
4061 __ push(temp_result); 4061 __ push(temp_result);
4062 __ CallRuntimeSaveDoubles(Runtime::kMathSqrtRT); 4062 __ CallRuntimeSaveDoubles(Runtime::kMathSqrtRT);
4063 RecordSafepointWithRegisters( 4063 RecordSafepointWithRegisters(instr->pointer_map(), 1,
4064 instr->pointer_map(), 0, Safepoint::kNoLazyDeopt); 4064 Safepoint::kNoLazyDeopt);
4065 __ StoreToSafepointRegisterSlot(temp_result, eax); 4065 __ StoreToSafepointRegisterSlot(temp_result, eax);
4066 } 4066 }
4067 X87PrepareToWrite(result_reg); 4067 X87PrepareToWrite(result_reg);
4068 // return value of MathExpRT is Smi or Heap Number. 4068 // return value of MathExpRT is Smi or Heap Number.
4069 __ JumpIfSmi(temp_result, &smi); 4069 __ JumpIfSmi(temp_result, &smi);
4070 // Heap number(double) 4070 // Heap number(double)
4071 __ fld_d(FieldOperand(temp_result, HeapNumber::kValueOffset)); 4071 __ fld_d(FieldOperand(temp_result, HeapNumber::kValueOffset));
4072 __ jmp(&finish); 4072 __ jmp(&finish);
4073 // SMI 4073 // SMI
4074 __ bind(&smi); 4074 __ bind(&smi);
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
4268 X87LoadForUsage(input); 4268 X87LoadForUsage(input);
4269 __ fstp_d(FieldOperand(temp_result, HeapNumber::kValueOffset)); 4269 __ fstp_d(FieldOperand(temp_result, HeapNumber::kValueOffset));
4270 4270
4271 { 4271 {
4272 // Preserve the value of all registers. 4272 // Preserve the value of all registers.
4273 PushSafepointRegistersScope scope(this); 4273 PushSafepointRegistersScope scope(this);
4274 4274
4275 __ mov(esi, Operand(ebp, StandardFrameConstants::kContextOffset)); 4275 __ mov(esi, Operand(ebp, StandardFrameConstants::kContextOffset));
4276 __ push(temp_result); 4276 __ push(temp_result);
4277 __ CallRuntimeSaveDoubles(Runtime::kMathExpRT); 4277 __ CallRuntimeSaveDoubles(Runtime::kMathExpRT);
4278 RecordSafepointWithRegisters(instr->pointer_map(), 0, 4278 RecordSafepointWithRegisters(instr->pointer_map(), 1,
4279 Safepoint::kNoLazyDeopt); 4279 Safepoint::kNoLazyDeopt);
4280 __ StoreToSafepointRegisterSlot(temp_result, eax); 4280 __ StoreToSafepointRegisterSlot(temp_result, eax);
4281 } 4281 }
4282 X87PrepareToWrite(result_reg); 4282 X87PrepareToWrite(result_reg);
4283 // return value of MathExpRT is Smi or Heap Number. 4283 // return value of MathExpRT is Smi or Heap Number.
4284 __ JumpIfSmi(temp_result, &smi); 4284 __ JumpIfSmi(temp_result, &smi);
4285 // Heap number(double) 4285 // Heap number(double)
4286 __ fld_d(FieldOperand(temp_result, HeapNumber::kValueOffset)); 4286 __ fld_d(FieldOperand(temp_result, HeapNumber::kValueOffset));
4287 __ jmp(&finish); 4287 __ jmp(&finish);
4288 // SMI 4288 // SMI
(...skipping 2005 matching lines...) Expand 10 before | Expand all | Expand 10 after
6294 CallRuntime(Runtime::kPushBlockContext, 2, instr); 6294 CallRuntime(Runtime::kPushBlockContext, 2, instr);
6295 RecordSafepoint(Safepoint::kNoLazyDeopt); 6295 RecordSafepoint(Safepoint::kNoLazyDeopt);
6296 } 6296 }
6297 6297
6298 6298
6299 #undef __ 6299 #undef __
6300 6300
6301 } } // namespace v8::internal 6301 } } // namespace v8::internal
6302 6302
6303 #endif // V8_TARGET_ARCH_X87 6303 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/version.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698