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

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

Issue 11663005: Adapt Danno's Track Allocation Info idea to fast literals. When allocating a literal array, (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Ported to other platforms Created 7 years, 11 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
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 1297 matching lines...) Expand 10 before | Expand all | Expand 10 after
1308 1308
1309 // Activation support. 1309 // Activation support.
1310 void EnterFrame(StackFrame::Type type); 1310 void EnterFrame(StackFrame::Type type);
1311 void LeaveFrame(StackFrame::Type type); 1311 void LeaveFrame(StackFrame::Type type);
1312 1312
1313 // Expects object in rax and returns map with validated enum cache 1313 // Expects object in rax and returns map with validated enum cache
1314 // in rax. Assumes that any other register can be used as a scratch. 1314 // in rax. Assumes that any other register can be used as a scratch.
1315 void CheckEnumCache(Register null_value, 1315 void CheckEnumCache(Register null_value,
1316 Label* call_runtime); 1316 Label* call_runtime);
1317 1317
1318 // AllocationSiteInfo support. Arrays may have an associated
1319 // AllocationSiteInfo object that can be checked for in order to pretransition
1320 // to another type.
1321 // On entry, rdx should point to the array object. rdi gets clobbered.
1322 // If allocation info is present, jump to allocation_info_present
1323 void PerformAllocationSiteInfoCheck(Label* allocation_info_present);
danno 2013/01/04 08:50:55 Pass in registers
1324
1318 private: 1325 private:
1319 // Order general registers are pushed by Pushad. 1326 // Order general registers are pushed by Pushad.
1320 // rax, rcx, rdx, rbx, rsi, rdi, r8, r9, r11, r14, r15. 1327 // rax, rcx, rdx, rbx, rsi, rdi, r8, r9, r11, r14, r15.
1321 static const int kSafepointPushRegisterIndices[Register::kNumRegisters]; 1328 static const int kSafepointPushRegisterIndices[Register::kNumRegisters];
1322 static const int kNumSafepointSavedRegisters = 11; 1329 static const int kNumSafepointSavedRegisters = 11;
1323 static const int kSmiShift = kSmiTagSize + kSmiShiftSize; 1330 static const int kSmiShift = kSmiTagSize + kSmiShiftSize;
1324 1331
1325 bool generating_stub_; 1332 bool generating_stub_;
1326 bool allow_stub_calls_; 1333 bool allow_stub_calls_;
1327 bool has_frame_; 1334 bool has_frame_;
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
1484 masm->popfq(); \ 1491 masm->popfq(); \
1485 } \ 1492 } \
1486 masm-> 1493 masm->
1487 #else 1494 #else
1488 #define ACCESS_MASM(masm) masm-> 1495 #define ACCESS_MASM(masm) masm->
1489 #endif 1496 #endif
1490 1497
1491 } } // namespace v8::internal 1498 } } // namespace v8::internal
1492 1499
1493 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ 1500 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698