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

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

Issue 26841009: Make TestJSArrayForAllocationMemento less awkward. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Comments addressed. Created 7 years, 2 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/x64/lithium-codegen-x64.cc ('k') | src/x64/macro-assembler-x64.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 1394 matching lines...) Expand 10 before | Expand all | Expand 10 after
1405 // Expects object in rax and returns map with validated enum cache 1405 // Expects object in rax and returns map with validated enum cache
1406 // in rax. Assumes that any other register can be used as a scratch. 1406 // in rax. Assumes that any other register can be used as a scratch.
1407 void CheckEnumCache(Register null_value, 1407 void CheckEnumCache(Register null_value,
1408 Label* call_runtime); 1408 Label* call_runtime);
1409 1409
1410 // AllocationMemento support. Arrays may have an associated 1410 // AllocationMemento support. Arrays may have an associated
1411 // AllocationMemento object that can be checked for in order to pretransition 1411 // AllocationMemento object that can be checked for in order to pretransition
1412 // to another type. 1412 // to another type.
1413 // On entry, receiver_reg should point to the array object. 1413 // On entry, receiver_reg should point to the array object.
1414 // scratch_reg gets clobbered. 1414 // scratch_reg gets clobbered.
1415 // If allocation info is present, condition flags are set to equal 1415 // If allocation info is present, condition flags are set to equal.
1416 void TestJSArrayForAllocationMemento(Register receiver_reg, 1416 void TestJSArrayForAllocationMemento(Register receiver_reg,
1417 Register scratch_reg); 1417 Register scratch_reg,
1418 Label* no_memento_found);
1419
1420 void JumpIfJSArrayHasAllocationMemento(Register receiver_reg,
1421 Register scratch_reg,
1422 Label* memento_found) {
1423 Label no_memento_found;
1424 TestJSArrayForAllocationMemento(receiver_reg, scratch_reg,
1425 &no_memento_found);
1426 j(equal, memento_found);
1427 bind(&no_memento_found);
1428 }
1418 1429
1419 private: 1430 private:
1420 // Order general registers are pushed by Pushad. 1431 // Order general registers are pushed by Pushad.
1421 // rax, rcx, rdx, rbx, rsi, rdi, r8, r9, r11, r14, r15. 1432 // rax, rcx, rdx, rbx, rsi, rdi, r8, r9, r11, r14, r15.
1422 static const int kSafepointPushRegisterIndices[Register::kNumRegisters]; 1433 static const int kSafepointPushRegisterIndices[Register::kNumRegisters];
1423 static const int kNumSafepointSavedRegisters = 11; 1434 static const int kNumSafepointSavedRegisters = 11;
1424 static const int kSmiShift = kSmiTagSize + kSmiShiftSize; 1435 static const int kSmiShift = kSmiTagSize + kSmiShiftSize;
1425 1436
1426 bool generating_stub_; 1437 bool generating_stub_;
1427 bool allow_stub_calls_; 1438 bool allow_stub_calls_;
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
1592 masm->popfq(); \ 1603 masm->popfq(); \
1593 } \ 1604 } \
1594 masm-> 1605 masm->
1595 #else 1606 #else
1596 #define ACCESS_MASM(masm) masm-> 1607 #define ACCESS_MASM(masm) masm->
1597 #endif 1608 #endif
1598 1609
1599 } } // namespace v8::internal 1610 } } // namespace v8::internal
1600 1611
1601 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ 1612 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_
OLDNEW
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | src/x64/macro-assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698