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

Side by Side Diff: src/ia32/virtual-frame-ia32.cc

Issue 3046006: Inline in-object property stores when in loop and not in top-level (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 5 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/ia32/macro-assembler-ia32.cc ('k') | src/ic.h » ('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 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 1016 matching lines...) Expand 10 before | Expand all | Expand 10 after
1027 PrepareForCall(0, 0); 1027 PrepareForCall(0, 0);
1028 MoveResultsToRegisters(&key, &receiver, eax, edx); 1028 MoveResultsToRegisters(&key, &receiver, eax, edx);
1029 1029
1030 Handle<Code> ic(Builtins::builtin(Builtins::KeyedLoadIC_Initialize)); 1030 Handle<Code> ic(Builtins::builtin(Builtins::KeyedLoadIC_Initialize));
1031 return RawCallCodeObject(ic, mode); 1031 return RawCallCodeObject(ic, mode);
1032 } 1032 }
1033 1033
1034 1034
1035 Result VirtualFrame::CallStoreIC(Handle<String> name, bool is_contextual) { 1035 Result VirtualFrame::CallStoreIC(Handle<String> name, bool is_contextual) {
1036 // Value and (if not contextual) receiver are on top of the frame. 1036 // Value and (if not contextual) receiver are on top of the frame.
1037 // The IC expects name in ecx, value in eax, and receiver in edx. 1037 // The IC expects name in ecx, value in eax, and receiver in edx.
1038 Handle<Code> ic(Builtins::builtin(Builtins::StoreIC_Initialize)); 1038 Handle<Code> ic(Builtins::builtin(Builtins::StoreIC_Initialize));
1039 Result value = Pop(); 1039 Result value = Pop();
1040 if (is_contextual) { 1040 if (is_contextual) {
1041 PrepareForCall(0, 0); 1041 PrepareForCall(0, 0);
1042 value.ToRegister(eax); 1042 value.ToRegister(eax);
1043 __ mov(edx, Operand(esi, Context::SlotOffset(Context::GLOBAL_INDEX))); 1043 __ mov(edx, Operand(esi, Context::SlotOffset(Context::GLOBAL_INDEX)));
1044 value.Unuse(); 1044 value.Unuse();
1045 } else { 1045 } else {
1046 Result receiver = Pop(); 1046 Result receiver = Pop();
1047 PrepareForCall(0, 0); 1047 PrepareForCall(0, 0);
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
1325 } 1325 }
1326 UNREACHABLE(); 1326 UNREACHABLE();
1327 } 1327 }
1328 1328
1329 1329
1330 #undef __ 1330 #undef __
1331 1331
1332 } } // namespace v8::internal 1332 } } // namespace v8::internal
1333 1333
1334 #endif // V8_TARGET_ARCH_IA32 1334 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/macro-assembler-ia32.cc ('k') | src/ic.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698