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

Side by Side Diff: src/arm/code-stubs-arm.cc

Issue 8700008: New approach to Crankshaft decision-making (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: fix function self-optimization; address first comment Created 9 years 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
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 // write barrier because the allocated object is in new space. 113 // write barrier because the allocated object is in new space.
114 __ LoadRoot(r1, Heap::kEmptyFixedArrayRootIndex); 114 __ LoadRoot(r1, Heap::kEmptyFixedArrayRootIndex);
115 __ LoadRoot(r2, Heap::kTheHoleValueRootIndex); 115 __ LoadRoot(r2, Heap::kTheHoleValueRootIndex);
116 __ LoadRoot(r4, Heap::kUndefinedValueRootIndex); 116 __ LoadRoot(r4, Heap::kUndefinedValueRootIndex);
117 __ str(r1, FieldMemOperand(r0, JSObject::kPropertiesOffset)); 117 __ str(r1, FieldMemOperand(r0, JSObject::kPropertiesOffset));
118 __ str(r1, FieldMemOperand(r0, JSObject::kElementsOffset)); 118 __ str(r1, FieldMemOperand(r0, JSObject::kElementsOffset));
119 __ str(r2, FieldMemOperand(r0, JSFunction::kPrototypeOrInitialMapOffset)); 119 __ str(r2, FieldMemOperand(r0, JSFunction::kPrototypeOrInitialMapOffset));
120 __ str(r3, FieldMemOperand(r0, JSFunction::kSharedFunctionInfoOffset)); 120 __ str(r3, FieldMemOperand(r0, JSFunction::kSharedFunctionInfoOffset));
121 __ str(cp, FieldMemOperand(r0, JSFunction::kContextOffset)); 121 __ str(cp, FieldMemOperand(r0, JSFunction::kContextOffset));
122 __ str(r1, FieldMemOperand(r0, JSFunction::kLiteralsOffset)); 122 __ str(r1, FieldMemOperand(r0, JSFunction::kLiteralsOffset));
123 __ mov(r2, Operand::Zero());
124 __ str(r2, FieldMemOperand(r0, JSFunction::kProfilerTicksOffset));
123 __ str(r4, FieldMemOperand(r0, JSFunction::kNextFunctionLinkOffset)); 125 __ str(r4, FieldMemOperand(r0, JSFunction::kNextFunctionLinkOffset));
124 126
125 127
126 // Initialize the code pointer in the function to be the one 128 // Initialize the code pointer in the function to be the one
127 // found in the shared function info object. 129 // found in the shared function info object.
128 __ ldr(r3, FieldMemOperand(r3, SharedFunctionInfo::kCodeOffset)); 130 __ ldr(r3, FieldMemOperand(r3, SharedFunctionInfo::kCodeOffset));
129 __ add(r3, r3, Operand(Code::kHeaderSize - kHeapObjectTag)); 131 __ add(r3, r3, Operand(Code::kHeaderSize - kHeapObjectTag));
130 __ str(r3, FieldMemOperand(r0, JSFunction::kCodeEntryOffset)); 132 __ str(r3, FieldMemOperand(r0, JSFunction::kCodeEntryOffset));
131 133
132 // Return result. The argument function info has been popped already. 134 // Return result. The argument function info has been popped already.
(...skipping 7115 matching lines...) Expand 10 before | Expand all | Expand 10 after
7248 __ StoreNumberToDoubleElements(r0, r3, r1, r5, r6, r7, r9, r10, 7250 __ StoreNumberToDoubleElements(r0, r3, r1, r5, r6, r7, r9, r10,
7249 &slow_elements); 7251 &slow_elements);
7250 __ Ret(); 7252 __ Ret();
7251 } 7253 }
7252 7254
7253 #undef __ 7255 #undef __
7254 7256
7255 } } // namespace v8::internal 7257 } } // namespace v8::internal
7256 7258
7257 #endif // V8_TARGET_ARCH_ARM 7259 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/arm/full-codegen-arm.cc » ('j') | src/ia32/full-codegen-ia32.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698