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

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

Issue 133443009: A64: Synchronize with r17441. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 10 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/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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 163
164 // Load an object from the root table. 164 // Load an object from the root table.
165 void LoadRoot(Register destination, 165 void LoadRoot(Register destination,
166 Heap::RootListIndex index, 166 Heap::RootListIndex index,
167 Condition cond = al); 167 Condition cond = al);
168 // Store an object to the root table. 168 // Store an object to the root table.
169 void StoreRoot(Register source, 169 void StoreRoot(Register source,
170 Heap::RootListIndex index, 170 Heap::RootListIndex index,
171 Condition cond = al); 171 Condition cond = al);
172 172
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 // --------------------------------------------------------------------------- 173 // ---------------------------------------------------------------------------
185 // GC Support 174 // GC Support
186 175
187 void IncrementalMarkingRecordWriteHelper(Register object, 176 void IncrementalMarkingRecordWriteHelper(Register object,
188 Register value, 177 Register value,
189 Register address); 178 Register address);
190 179
191 enum RememberedSetFinalAction { 180 enum RememberedSetFinalAction {
192 kReturnAtEnd, 181 kReturnAtEnd,
193 kFallThroughAtEnd 182 kFallThroughAtEnd
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
532 // Floating point value in the 32-bit integer range that are not exact integer 521 // Floating point value in the 32-bit integer range that are not exact integer
533 // won't be converted. 522 // won't be converted.
534 void LoadNumberAsInt32(Register object, 523 void LoadNumberAsInt32(Register object,
535 Register dst, 524 Register dst,
536 Register heap_number_map, 525 Register heap_number_map,
537 Register scratch, 526 Register scratch,
538 DwVfpRegister double_scratch0, 527 DwVfpRegister double_scratch0,
539 LowDwVfpRegister double_scratch1, 528 LowDwVfpRegister double_scratch1,
540 Label* not_int32); 529 Label* not_int32);
541 530
531 // Generates function and stub prologue code.
532 void Prologue(PrologueFrameMode frame_mode);
542 533
543 // Enter exit frame. 534 // Enter exit frame.
544 // stack_space - extra stack space, used for alignment before call to C. 535 // stack_space - extra stack space, used for alignment before call to C.
545 void EnterExitFrame(bool save_doubles, int stack_space = 0); 536 void EnterExitFrame(bool save_doubles, int stack_space = 0);
546 537
547 // Leave the current exit frame. Expects the return value in r0. 538 // Leave the current exit frame. Expects the return value in r0.
548 // Expect the number of values, pushed prior to the exit frame, to 539 // Expect the number of values, pushed prior to the exit frame, to
549 // remove in a register (or no_reg, if there is nothing to remove). 540 // remove in a register (or no_reg, if there is nothing to remove).
550 void LeaveExitFrame(bool save_doubles, 541 void LeaveExitFrame(bool save_doubles,
551 Register argument_count, 542 Register argument_count,
(...skipping 829 matching lines...) Expand 10 before | Expand all | Expand 10 after
1381 1372
1382 // Expects object in r0 and returns map with validated enum cache 1373 // Expects object in r0 and returns map with validated enum cache
1383 // in r0. Assumes that any other register can be used as a scratch. 1374 // in r0. Assumes that any other register can be used as a scratch.
1384 void CheckEnumCache(Register null_value, Label* call_runtime); 1375 void CheckEnumCache(Register null_value, Label* call_runtime);
1385 1376
1386 // AllocationMemento support. Arrays may have an associated 1377 // AllocationMemento support. Arrays may have an associated
1387 // AllocationMemento object that can be checked for in order to pretransition 1378 // AllocationMemento object that can be checked for in order to pretransition
1388 // to another type. 1379 // to another type.
1389 // On entry, receiver_reg should point to the array object. 1380 // On entry, receiver_reg should point to the array object.
1390 // scratch_reg gets clobbered. 1381 // scratch_reg gets clobbered.
1391 // If allocation info is present, condition flags are set to eq 1382 // If allocation info is present, condition flags are set to eq.
1392 void TestJSArrayForAllocationMemento(Register receiver_reg, 1383 void TestJSArrayForAllocationMemento(Register receiver_reg,
1393 Register scratch_reg); 1384 Register scratch_reg,
1385 Label* no_memento_found);
1386
1387 void JumpIfJSArrayHasAllocationMemento(Register receiver_reg,
1388 Register scratch_reg,
1389 Label* memento_found) {
1390 Label no_memento_found;
1391 TestJSArrayForAllocationMemento(receiver_reg, scratch_reg,
1392 &no_memento_found);
1393 b(eq, memento_found);
1394 bind(&no_memento_found);
1395 }
1394 1396
1395 private: 1397 private:
1396 void CallCFunctionHelper(Register function, 1398 void CallCFunctionHelper(Register function,
1397 int num_reg_arguments, 1399 int num_reg_arguments,
1398 int num_double_arguments); 1400 int num_double_arguments);
1399 1401
1400 void Jump(intptr_t target, RelocInfo::Mode rmode, Condition cond = al); 1402 void Jump(intptr_t target, RelocInfo::Mode rmode, Condition cond = al);
1401 1403
1402 // Helper functions for generating invokes. 1404 // Helper functions for generating invokes.
1403 void InvokePrologue(const ParameterCount& expected, 1405 void InvokePrologue(const ParameterCount& expected,
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
1507 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) 1509 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
1508 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 1510 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
1509 #else 1511 #else
1510 #define ACCESS_MASM(masm) masm-> 1512 #define ACCESS_MASM(masm) masm->
1511 #endif 1513 #endif
1512 1514
1513 1515
1514 } } // namespace v8::internal 1516 } } // namespace v8::internal
1515 1517
1516 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ 1518 #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