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

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

Issue 3402014: Generate inline code for contextual loads. (Closed)
Patch Set: Created 10 years, 3 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
OLDNEW
1 // Copyright 2006-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-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 2201 matching lines...) Expand 10 before | Expand all | Expand 10 after
2212 __ ldr(r4, FieldMemOperand(r3, JSGlobalPropertyCell::kValueOffset)); 2212 __ ldr(r4, FieldMemOperand(r3, JSGlobalPropertyCell::kValueOffset));
2213 2213
2214 // Check for deleted property if property can actually be deleted. 2214 // Check for deleted property if property can actually be deleted.
2215 if (!is_dont_delete) { 2215 if (!is_dont_delete) {
2216 __ LoadRoot(ip, Heap::kTheHoleValueRootIndex); 2216 __ LoadRoot(ip, Heap::kTheHoleValueRootIndex);
2217 __ cmp(r4, ip); 2217 __ cmp(r4, ip);
2218 __ b(eq, &miss); 2218 __ b(eq, &miss);
2219 } 2219 }
2220 2220
2221 __ mov(r0, r4); 2221 __ mov(r0, r4);
2222 __ IncrementCounter(&Counters::named_load_global_inline, 1, r1, r3); 2222 __ IncrementCounter(&Counters::named_load_global_stub, 1, r1, r3);
2223 __ Ret(); 2223 __ Ret();
2224 2224
2225 __ bind(&miss); 2225 __ bind(&miss);
2226 __ IncrementCounter(&Counters::named_load_global_inline_miss, 1, r1, r3); 2226 __ IncrementCounter(&Counters::named_load_global_stub_miss, 1, r1, r3);
2227 GenerateLoadMiss(masm(), Code::LOAD_IC); 2227 GenerateLoadMiss(masm(), Code::LOAD_IC);
2228 2228
2229 // Return the generated code. 2229 // Return the generated code.
2230 return GetCode(NORMAL, name); 2230 return GetCode(NORMAL, name);
2231 } 2231 }
2232 2232
2233 2233
2234 Object* KeyedLoadStubCompiler::CompileLoadField(String* name, 2234 Object* KeyedLoadStubCompiler::CompileLoadField(String* name,
2235 JSObject* receiver, 2235 JSObject* receiver,
2236 JSObject* holder, 2236 JSObject* holder,
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
2573 // Return the generated code. 2573 // Return the generated code.
2574 return GetCode(); 2574 return GetCode();
2575 } 2575 }
2576 2576
2577 2577
2578 #undef __ 2578 #undef __
2579 2579
2580 } } // namespace v8::internal 2580 } } // namespace v8::internal
2581 2581
2582 #endif // V8_TARGET_ARCH_ARM 2582 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/ic-arm.cc ('k') | src/frames.h » ('j') | src/ia32/codegen-ia32.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698