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

Side by Side Diff: src/x64/stub-cache-x64.cc

Issue 21014003: Optionally use 31-bits SMI value for 64-bit system (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Use (kSmiValueSize == 31) or (kSmiValueSize == 32) for SMI functions in macro assembler" Created 7 years, 4 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 3038 matching lines...) Expand 10 before | Expand all | Expand 10 after
3049 __ CheckMap(key, 3049 __ CheckMap(key,
3050 masm->isolate()->factory()->heap_number_map(), 3050 masm->isolate()->factory()->heap_number_map(),
3051 fail, 3051 fail,
3052 DONT_DO_SMI_CHECK); 3052 DONT_DO_SMI_CHECK);
3053 __ movsd(xmm_scratch0, FieldOperand(key, HeapNumber::kValueOffset)); 3053 __ movsd(xmm_scratch0, FieldOperand(key, HeapNumber::kValueOffset));
3054 __ cvttsd2si(scratch, xmm_scratch0); 3054 __ cvttsd2si(scratch, xmm_scratch0);
3055 __ cvtlsi2sd(xmm_scratch1, scratch); 3055 __ cvtlsi2sd(xmm_scratch1, scratch);
3056 __ ucomisd(xmm_scratch1, xmm_scratch0); 3056 __ ucomisd(xmm_scratch1, xmm_scratch0);
3057 __ j(not_equal, fail); 3057 __ j(not_equal, fail);
3058 __ j(parity_even, fail); // NaN. 3058 __ j(parity_even, fail); // NaN.
3059 __ JumpIfNotValidSmiValue(scratch, fail);
3059 __ Integer32ToSmi(key, scratch); 3060 __ Integer32ToSmi(key, scratch);
3060 __ bind(&key_ok); 3061 __ bind(&key_ok);
3061 } 3062 }
3062 3063
3063 3064
3064 void KeyedStoreStubCompiler::GenerateStoreExternalArray( 3065 void KeyedStoreStubCompiler::GenerateStoreExternalArray(
3065 MacroAssembler* masm, 3066 MacroAssembler* masm,
3066 ElementsKind elements_kind) { 3067 ElementsKind elements_kind) {
3067 // ----------- S t a t e ------------- 3068 // ----------- S t a t e -------------
3068 // -- rax : value 3069 // -- rax : value
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
3512 TailCallBuiltin(masm, Builtins::kKeyedStoreIC_Slow); 3513 TailCallBuiltin(masm, Builtins::kKeyedStoreIC_Slow);
3513 } 3514 }
3514 } 3515 }
3515 3516
3516 3517
3517 #undef __ 3518 #undef __
3518 3519
3519 } } // namespace v8::internal 3520 } } // namespace v8::internal
3520 3521
3521 #endif // V8_TARGET_ARCH_X64 3522 #endif // V8_TARGET_ARCH_X64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698