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

Side by Side Diff: src/arm/macro-assembler-arm.h

Issue 71163006: Merge bleeding_edge r17376:17693. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/parser
Patch Set: Fix all.gyp Created 7 years, 1 month 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/arm/lithium-gap-resolver-arm.cc ('k') | src/arm/macro-assembler-arm.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 154
155 void Call(Label* target); 155 void Call(Label* target);
156 void Push(Register src) { push(src); } 156 void Push(Register src) { push(src); }
157 void Pop(Register dst) { pop(dst); } 157 void Pop(Register dst) { pop(dst); }
158 158
159 // Register move. May do nothing if the registers are identical. 159 // Register move. May do nothing if the registers are identical.
160 void Move(Register dst, Handle<Object> value); 160 void Move(Register dst, Handle<Object> value);
161 void Move(Register dst, Register src, Condition cond = al); 161 void Move(Register dst, Register src, Condition cond = al);
162 void Move(DwVfpRegister dst, DwVfpRegister src); 162 void Move(DwVfpRegister dst, DwVfpRegister src);
163 163
164 void Load(Register dst, const MemOperand& src, Representation r);
165 void Store(Register src, const MemOperand& dst, Representation r);
166
164 // Load an object from the root table. 167 // Load an object from the root table.
165 void LoadRoot(Register destination, 168 void LoadRoot(Register destination,
166 Heap::RootListIndex index, 169 Heap::RootListIndex index,
167 Condition cond = al); 170 Condition cond = al);
168 // Store an object to the root table. 171 // Store an object to the root table.
169 void StoreRoot(Register source, 172 void StoreRoot(Register source,
170 Heap::RootListIndex index, 173 Heap::RootListIndex index,
171 Condition cond = al); 174 Condition cond = al);
172 175
173 void LoadHeapObject(Register dst, Handle<HeapObject> object);
174
175 void LoadObject(Register result, Handle<Object> object) {
176 AllowDeferredHandleDereference heap_object_check;
177 if (object->IsHeapObject()) {
178 LoadHeapObject(result, Handle<HeapObject>::cast(object));
179 } else {
180 Move(result, object);
181 }
182 }
183
184 // --------------------------------------------------------------------------- 176 // ---------------------------------------------------------------------------
185 // GC Support 177 // GC Support
186 178
187 void IncrementalMarkingRecordWriteHelper(Register object, 179 void IncrementalMarkingRecordWriteHelper(Register object,
188 Register value, 180 Register value,
189 Register address); 181 Register address);
190 182
191 enum RememberedSetFinalAction { 183 enum RememberedSetFinalAction {
192 kReturnAtEnd, 184 kReturnAtEnd,
193 kFallThroughAtEnd 185 kFallThroughAtEnd
(...skipping 1204 matching lines...) Expand 10 before | Expand all | Expand 10 after
1398 void JumpIfJSArrayHasAllocationMemento(Register receiver_reg, 1390 void JumpIfJSArrayHasAllocationMemento(Register receiver_reg,
1399 Register scratch_reg, 1391 Register scratch_reg,
1400 Label* memento_found) { 1392 Label* memento_found) {
1401 Label no_memento_found; 1393 Label no_memento_found;
1402 TestJSArrayForAllocationMemento(receiver_reg, scratch_reg, 1394 TestJSArrayForAllocationMemento(receiver_reg, scratch_reg,
1403 &no_memento_found); 1395 &no_memento_found);
1404 b(eq, memento_found); 1396 b(eq, memento_found);
1405 bind(&no_memento_found); 1397 bind(&no_memento_found);
1406 } 1398 }
1407 1399
1400 // Jumps to found label if a prototype map has dictionary elements.
1401 void JumpIfDictionaryInPrototypeChain(Register object, Register scratch0,
1402 Register scratch1, Label* found);
1403
1408 private: 1404 private:
1409 void CallCFunctionHelper(Register function, 1405 void CallCFunctionHelper(Register function,
1410 int num_reg_arguments, 1406 int num_reg_arguments,
1411 int num_double_arguments); 1407 int num_double_arguments);
1412 1408
1413 void Jump(intptr_t target, RelocInfo::Mode rmode, Condition cond = al); 1409 void Jump(intptr_t target, RelocInfo::Mode rmode, Condition cond = al);
1414 1410
1415 // Helper functions for generating invokes. 1411 // Helper functions for generating invokes.
1416 void InvokePrologue(const ParameterCount& expected, 1412 void InvokePrologue(const ParameterCount& expected,
1417 const ParameterCount& actual, 1413 const ParameterCount& actual,
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
1520 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) 1516 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
1521 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 1517 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
1522 #else 1518 #else
1523 #define ACCESS_MASM(masm) masm-> 1519 #define ACCESS_MASM(masm) masm->
1524 #endif 1520 #endif
1525 1521
1526 1522
1527 } } // namespace v8::internal 1523 } } // namespace v8::internal
1528 1524
1529 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ 1525 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_
OLDNEW
« no previous file with comments | « src/arm/lithium-gap-resolver-arm.cc ('k') | src/arm/macro-assembler-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698