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

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

Issue 6603028: Merge revisions 7030:7051 from bleeding_edge to isolates branch.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: '' Created 9 years, 9 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/hydrogen-instructions.h ('k') | src/ia32/full-codegen-ia32.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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 1234 matching lines...) Expand 10 before | Expand all | Expand 10 after
1245 void Builtins::Generate_ArrayConstructCode(MacroAssembler* masm) { 1245 void Builtins::Generate_ArrayConstructCode(MacroAssembler* masm) {
1246 // ----------- S t a t e ------------- 1246 // ----------- S t a t e -------------
1247 // -- eax : argc 1247 // -- eax : argc
1248 // -- edi : constructor 1248 // -- edi : constructor
1249 // -- esp[0] : return address 1249 // -- esp[0] : return address
1250 // -- esp[4] : last argument 1250 // -- esp[4] : last argument
1251 // ----------------------------------- 1251 // -----------------------------------
1252 Label generic_constructor; 1252 Label generic_constructor;
1253 1253
1254 if (FLAG_debug_code) { 1254 if (FLAG_debug_code) {
1255 // The array construct code is only set for the builtin Array function which 1255 // The array construct code is only set for the global and natives
1256 // does always have a map. 1256 // builtin Array functions which always have maps.
1257 __ LoadGlobalFunction(Context::ARRAY_FUNCTION_INDEX, ebx); 1257
1258 __ cmp(edi, Operand(ebx));
1259 __ Assert(equal, "Unexpected Array function");
1260 // Initial map for the builtin Array function should be a map. 1258 // Initial map for the builtin Array function should be a map.
1261 __ mov(ebx, FieldOperand(edi, JSFunction::kPrototypeOrInitialMapOffset)); 1259 __ mov(ebx, FieldOperand(edi, JSFunction::kPrototypeOrInitialMapOffset));
1262 // Will both indicate a NULL and a Smi. 1260 // Will both indicate a NULL and a Smi.
1263 __ test(ebx, Immediate(kSmiTagMask)); 1261 __ test(ebx, Immediate(kSmiTagMask));
1264 __ Assert(not_zero, "Unexpected initial map for Array function"); 1262 __ Assert(not_zero, "Unexpected initial map for Array function");
1265 __ CmpObjectType(ebx, MAP_TYPE, ecx); 1263 __ CmpObjectType(ebx, MAP_TYPE, ecx);
1266 __ Assert(equal, "Unexpected initial map for Array function"); 1264 __ Assert(equal, "Unexpected initial map for Array function");
1267 } 1265 }
1268 1266
1269 // Run the native code for the Array function called as constructor. 1267 // Run the native code for the Array function called as constructor.
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
1587 Deoptimizer::EntryGenerator generator(masm, Deoptimizer::OSR); 1585 Deoptimizer::EntryGenerator generator(masm, Deoptimizer::OSR);
1588 generator.Generate(); 1586 generator.Generate();
1589 } 1587 }
1590 1588
1591 1589
1592 #undef __ 1590 #undef __
1593 1591
1594 } } // namespace v8::internal 1592 } } // namespace v8::internal
1595 1593
1596 #endif // V8_TARGET_ARCH_IA32 1594 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/hydrogen-instructions.h ('k') | src/ia32/full-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698