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

Side by Side Diff: src/arm64/assembler-arm64.h

Issue 2944013002: Remove TypeFeedbackId parameters from assembler and full-code. (Closed)
Patch Set: REBASE+fixes. Created 3 years, 6 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
« no previous file with comments | « src/arm/macro-assembler-arm.cc ('k') | src/arm64/assembler-arm64.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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_ARM64_ASSEMBLER_ARM64_H_ 5 #ifndef V8_ARM64_ASSEMBLER_ARM64_H_
6 #define V8_ARM64_ASSEMBLER_ARM64_H_ 6 #define V8_ARM64_ASSEMBLER_ARM64_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <list> 9 #include <list>
10 #include <map> 10 #include <map>
(...skipping 3451 matching lines...) Expand 10 before | Expand all | Expand 10 after
3462 // Relocation info records are also used during code generation as temporary 3462 // Relocation info records are also used during code generation as temporary
3463 // containers for constants and code target addresses until they are emitted 3463 // containers for constants and code target addresses until they are emitted
3464 // to the constant pool. These pending relocation info records are temporarily 3464 // to the constant pool. These pending relocation info records are temporarily
3465 // stored in a separate buffer until a constant pool is emitted. 3465 // stored in a separate buffer until a constant pool is emitted.
3466 // If every instruction in a long sequence is accessing the pool, we need one 3466 // If every instruction in a long sequence is accessing the pool, we need one
3467 // pending relocation entry per instruction. 3467 // pending relocation entry per instruction.
3468 3468
3469 // The pending constant pool. 3469 // The pending constant pool.
3470 ConstPool constpool_; 3470 ConstPool constpool_;
3471 3471
3472 // Relocation for a type-recording IC has the AST id added to it. This
3473 // member variable is a way to pass the information from the call site to
3474 // the relocation info.
3475 TypeFeedbackId recorded_ast_id_;
3476
3477 inline TypeFeedbackId RecordedAstId();
3478 inline void ClearRecordedAstId();
3479
3480 protected: 3472 protected:
3481 // Record the AST id of the CallIC being compiled, so that it can be placed
3482 // in the relocation information.
3483 void SetRecordedAstId(TypeFeedbackId ast_id) {
3484 DCHECK(recorded_ast_id_.IsNone());
3485 recorded_ast_id_ = ast_id;
3486 }
3487
3488 // Code generation 3473 // Code generation
3489 // The relocation writer's position is at least kGap bytes below the end of 3474 // The relocation writer's position is at least kGap bytes below the end of
3490 // the generated instructions. This is so that multi-instruction sequences do 3475 // the generated instructions. This is so that multi-instruction sequences do
3491 // not have to check for overflow. The same is true for writes of large 3476 // not have to check for overflow. The same is true for writes of large
3492 // relocation info entries, and debug strings encoded in the instruction 3477 // relocation info entries, and debug strings encoded in the instruction
3493 // stream. 3478 // stream.
3494 static constexpr int kGap = 128; 3479 static constexpr int kGap = 128;
3495 3480
3496 public: 3481 public:
3497 #ifdef DEBUG 3482 #ifdef DEBUG
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
3627 public: 3612 public:
3628 explicit EnsureSpace(Assembler* assembler) { 3613 explicit EnsureSpace(Assembler* assembler) {
3629 assembler->CheckBufferSpace(); 3614 assembler->CheckBufferSpace();
3630 } 3615 }
3631 }; 3616 };
3632 3617
3633 } // namespace internal 3618 } // namespace internal
3634 } // namespace v8 3619 } // namespace v8
3635 3620
3636 #endif // V8_ARM64_ASSEMBLER_ARM64_H_ 3621 #endif // V8_ARM64_ASSEMBLER_ARM64_H_
OLDNEW
« no previous file with comments | « src/arm/macro-assembler-arm.cc ('k') | src/arm64/assembler-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698