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

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

Issue 6579: Make sure to check that the function prototype is a ... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 12 years, 2 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/codegen-ia32.cc ('k') | test/mjsunit/instanceof.js » ('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 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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 __ shl(eax, kSmiTagSize); 225 __ shl(eax, kSmiTagSize);
226 __ ret(0); 226 __ ret(0);
227 } 227 }
228 228
229 229
230 void StubCompiler::GenerateLoadFunctionPrototype(MacroAssembler* masm, 230 void StubCompiler::GenerateLoadFunctionPrototype(MacroAssembler* masm,
231 Register receiver, 231 Register receiver,
232 Register scratch1, 232 Register scratch1,
233 Register scratch2, 233 Register scratch2,
234 Label* miss_label) { 234 Label* miss_label) {
235
236 __ TryGetFunctionPrototype(receiver, scratch1, scratch2, miss_label); 235 __ TryGetFunctionPrototype(receiver, scratch1, scratch2, miss_label);
237 __ mov(eax, Operand(scratch1)); 236 __ mov(eax, Operand(scratch1));
238 __ ret(0); 237 __ ret(0);
239 } 238 }
240 239
241 240
242 void StubCompiler::GenerateLoadField(MacroAssembler* masm, 241 void StubCompiler::GenerateLoadField(MacroAssembler* masm,
243 JSObject* object, 242 JSObject* object,
244 JSObject* holder, 243 JSObject* holder,
245 Register receiver, 244 Register receiver,
(...skipping 966 matching lines...) Expand 10 before | Expand all | Expand 10 after
1212 GenerateLoadMiss(masm(), Code::KEYED_LOAD_IC); 1211 GenerateLoadMiss(masm(), Code::KEYED_LOAD_IC);
1213 1212
1214 // Return the generated code. 1213 // Return the generated code.
1215 return GetCode(CALLBACKS); 1214 return GetCode(CALLBACKS);
1216 } 1215 }
1217 1216
1218 1217
1219 #undef __ 1218 #undef __
1220 1219
1221 } } // namespace v8::internal 1220 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/codegen-ia32.cc ('k') | test/mjsunit/instanceof.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698