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

Unified Diff: src/arm/virtual-frame-arm.cc

Issue 1715003: Add inlining of property load on ARM... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: src/arm/virtual-frame-arm.cc
===================================================================
--- src/arm/virtual-frame-arm.cc (revision 4459)
+++ src/arm/virtual-frame-arm.cc (working copy)
@@ -299,6 +299,20 @@
}
+void VirtualFrame::CallLoadIC(RelocInfo::Mode mode, bool load_inlined) {
+ // If a nop is generated later make sure the it follows the call directly.
+ Assembler::BlockConstPoolScope block_const_pool(masm());
+
+ Handle<Code> ic(Builtins::builtin(Builtins::LoadIC_Initialize));
+ CallCodeObject(ic, mode, 0);
+ if (!load_inlined) {
+ // A B instruction following the call signals that the load was inlined.
+ // Ensure that there is not a B instruction here.
+ __ nop();
+ }
+}
+
+
void VirtualFrame::CallCodeObject(Handle<Code> code,
RelocInfo::Mode rmode,
int dropped_args) {

Powered by Google App Engine
This is Rietveld 408576698