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

Side by Side Diff: src/ia32/ic-ia32.cc

Issue 141056: x64: Generate code for loading from, storing to and calling properties. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 6 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 | « no previous file | src/ic.h » ('j') | src/x64/codegen-x64.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 __ j(zero, &done, not_taken); 134 __ j(zero, &done, not_taken);
135 // Check if the object has been loaded. 135 // Check if the object has been loaded.
136 __ mov(scratch, FieldOperand(value, JSFunction::kMapOffset)); 136 __ mov(scratch, FieldOperand(value, JSFunction::kMapOffset));
137 __ mov(scratch, FieldOperand(scratch, Map::kBitField2Offset)); 137 __ mov(scratch, FieldOperand(scratch, Map::kBitField2Offset));
138 __ test(scratch, Immediate(1 << Map::kNeedsLoading)); 138 __ test(scratch, Immediate(1 << Map::kNeedsLoading));
139 __ j(not_zero, miss, not_taken); 139 __ j(not_zero, miss, not_taken);
140 __ bind(&done); 140 __ bind(&done);
141 } 141 }
142 142
143 143
144 const int LoadIC::kOffsetToLoadInstruction = 13;
145
146
144 void LoadIC::GenerateArrayLength(MacroAssembler* masm) { 147 void LoadIC::GenerateArrayLength(MacroAssembler* masm) {
145 // ----------- S t a t e ------------- 148 // ----------- S t a t e -------------
146 // -- ecx : name 149 // -- ecx : name
147 // -- esp[0] : return address 150 // -- esp[0] : return address
148 // -- esp[4] : receiver 151 // -- esp[4] : receiver
149 // ----------------------------------- 152 // -----------------------------------
150 153
151 Label miss; 154 Label miss;
152 155
153 __ mov(eax, Operand(esp, kPointerSize)); 156 __ mov(eax, Operand(esp, kPointerSize));
(...skipping 803 matching lines...) Expand 10 before | Expand all | Expand 10 after
957 960
958 // Do tail-call to runtime routine. 961 // Do tail-call to runtime routine.
959 __ TailCallRuntime( 962 __ TailCallRuntime(
960 ExternalReference(IC_Utility(kSharedStoreIC_ExtendStorage)), 3); 963 ExternalReference(IC_Utility(kSharedStoreIC_ExtendStorage)), 3);
961 } 964 }
962 965
963 #undef __ 966 #undef __
964 967
965 968
966 } } // namespace v8::internal 969 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/ic.h » ('j') | src/x64/codegen-x64.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698