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

Side by Side Diff: src/a64/assembler-a64-inl.h

Issue 179813005: Special case the recording of constant pool entries in the slot buffer. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Remove VisitCodeTarget(Address) function Created 6 years, 9 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/a64/assembler-a64.cc ('k') | src/arm/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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 631 matching lines...) Expand 10 before | Expand all | Expand 10 after
642 642
643 643
644 Address RelocInfo::target_address_address() { 644 Address RelocInfo::target_address_address() {
645 ASSERT(IsCodeTarget(rmode_) || IsRuntimeEntry(rmode_) 645 ASSERT(IsCodeTarget(rmode_) || IsRuntimeEntry(rmode_)
646 || rmode_ == EMBEDDED_OBJECT 646 || rmode_ == EMBEDDED_OBJECT
647 || rmode_ == EXTERNAL_REFERENCE); 647 || rmode_ == EXTERNAL_REFERENCE);
648 return Assembler::target_pointer_address_at(pc_); 648 return Assembler::target_pointer_address_at(pc_);
649 } 649 }
650 650
651 651
652 Address RelocInfo::constant_pool_entry_address() {
653 ASSERT(IsInConstantPool());
654 return Assembler::target_pointer_address_at(pc_);
655 }
656
657
652 Object* RelocInfo::target_object() { 658 Object* RelocInfo::target_object() {
653 ASSERT(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT); 659 ASSERT(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT);
654 return reinterpret_cast<Object*>(Assembler::target_address_at(pc_)); 660 return reinterpret_cast<Object*>(Assembler::target_address_at(pc_));
655 } 661 }
656 662
657 663
658 Handle<Object> RelocInfo::target_object_handle(Assembler* origin) { 664 Handle<Object> RelocInfo::target_object_handle(Assembler* origin) {
659 ASSERT(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT); 665 ASSERT(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT);
660 return Handle<Object>(reinterpret_cast<Object**>( 666 return Handle<Object>(reinterpret_cast<Object**>(
661 Assembler::target_address_at(pc_))); 667 Assembler::target_address_at(pc_)));
(...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after
1191 1197
1192 1198
1193 void Assembler::ClearRecordedAstId() { 1199 void Assembler::ClearRecordedAstId() {
1194 recorded_ast_id_ = TypeFeedbackId::None(); 1200 recorded_ast_id_ = TypeFeedbackId::None();
1195 } 1201 }
1196 1202
1197 1203
1198 } } // namespace v8::internal 1204 } } // namespace v8::internal
1199 1205
1200 #endif // V8_A64_ASSEMBLER_A64_INL_H_ 1206 #endif // V8_A64_ASSEMBLER_A64_INL_H_
OLDNEW
« no previous file with comments | « src/a64/assembler-a64.cc ('k') | src/arm/assembler-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698