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

Side by Side Diff: src/x64/code-stubs-x64.cc

Issue 216513003: Adjust various constants for x32 port (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 8 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-inl.h ('k') | src/x64/full-codegen-x64.cc » ('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 2782 matching lines...) Expand 10 before | Expand all | Expand 10 after
2793 // Expected input state with an inline one-element cache: 2793 // Expected input state with an inline one-element cache:
2794 // rsp[0] : return address 2794 // rsp[0] : return address
2795 // rsp[8] : offset from return address to location of inline cache 2795 // rsp[8] : offset from return address to location of inline cache
2796 // rsp[16] : function pointer 2796 // rsp[16] : function pointer
2797 // rsp[24] : value 2797 // rsp[24] : value
2798 // Returns a bitwise zero to indicate that the value 2798 // Returns a bitwise zero to indicate that the value
2799 // is and instance of the function and anything else to 2799 // is and instance of the function and anything else to
2800 // indicate that the value is not an instance. 2800 // indicate that the value is not an instance.
2801 2801
2802 static const int kOffsetToMapCheckValue = 2; 2802 static const int kOffsetToMapCheckValue = 2;
2803 static const int kOffsetToResultValue = 18; 2803 static const int kOffsetToResultValue = kPointerSize == kInt64Size ? 18 : 14;
2804 // The last 4 bytes of the instruction sequence 2804 // The last 4 bytes of the instruction sequence
2805 // movq(rdi, FieldOperand(rax, HeapObject::kMapOffset)) 2805 // movp(rdi, FieldOperand(rax, HeapObject::kMapOffset))
2806 // Move(kScratchRegister, Factory::the_hole_value()) 2806 // Move(kScratchRegister, Factory::the_hole_value())
2807 // in front of the hole value address. 2807 // in front of the hole value address.
2808 static const unsigned int kWordBeforeMapCheckValue = 0xBA49FF78; 2808 static const unsigned int kWordBeforeMapCheckValue =
2809 kPointerSize == kInt64Size ? 0xBA49FF78 : 0xBA41FF78;
2809 // The last 4 bytes of the instruction sequence 2810 // The last 4 bytes of the instruction sequence
2810 // __ j(not_equal, &cache_miss); 2811 // __ j(not_equal, &cache_miss);
2811 // __ LoadRoot(ToRegister(instr->result()), Heap::kTheHoleValueRootIndex); 2812 // __ LoadRoot(ToRegister(instr->result()), Heap::kTheHoleValueRootIndex);
2812 // before the offset of the hole value in the root array. 2813 // before the offset of the hole value in the root array.
2813 static const unsigned int kWordBeforeResultValue = 0x458B4906; 2814 static const unsigned int kWordBeforeResultValue =
2815 kPointerSize == kInt64Size ? 0x458B4906 : 0x458B4106;
2814 // Only the inline check flag is supported on X64. 2816 // Only the inline check flag is supported on X64.
2815 ASSERT(flags_ == kNoFlags || HasCallSiteInlineCheck()); 2817 ASSERT(flags_ == kNoFlags || HasCallSiteInlineCheck());
2816 int extra_argument_offset = HasCallSiteInlineCheck() ? 1 : 0; 2818 int extra_argument_offset = HasCallSiteInlineCheck() ? 1 : 0;
2817 2819
2818 // Get the object - go slow case if it's a smi. 2820 // Get the object - go slow case if it's a smi.
2819 Label slow; 2821 Label slow;
2820 StackArgumentsAccessor args(rsp, 2 + extra_argument_offset, 2822 StackArgumentsAccessor args(rsp, 2 + extra_argument_offset,
2821 ARGUMENTS_DONT_CONTAIN_RECEIVER); 2823 ARGUMENTS_DONT_CONTAIN_RECEIVER);
2822 __ movp(rax, args.GetArgumentOperand(0)); 2824 __ movp(rax, args.GetArgumentOperand(0));
2823 __ JumpIfSmi(rax, &slow); 2825 __ JumpIfSmi(rax, &slow);
(...skipping 2398 matching lines...) Expand 10 before | Expand all | Expand 10 after
5222 return_value_operand, 5224 return_value_operand,
5223 NULL); 5225 NULL);
5224 } 5226 }
5225 5227
5226 5228
5227 #undef __ 5229 #undef __
5228 5230
5229 } } // namespace v8::internal 5231 } } // namespace v8::internal
5230 5232
5231 #endif // V8_TARGET_ARCH_X64 5233 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/assembler-x64-inl.h ('k') | src/x64/full-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698