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

Side by Side Diff: src/arm64/decoder-arm64.cc

Issue 519723002: [arm64] Fix order of decoder visitor add functions (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 3 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 | « no previous file | no next file » | 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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_ARM64 7 #if V8_TARGET_ARCH_ARM64
8 8
9 #include "src/arm64/decoder-arm64.h" 9 #include "src/arm64/decoder-arm64.h"
10 #include "src/globals.h" 10 #include "src/globals.h"
11 #include "src/utils.h" 11 #include "src/utils.h"
12 12
13 13
14 namespace v8 { 14 namespace v8 {
15 namespace internal { 15 namespace internal {
16 16
17 17
18 void DispatchingDecoderVisitor::AppendVisitor(DecoderVisitor* new_visitor) { 18 void DispatchingDecoderVisitor::AppendVisitor(DecoderVisitor* new_visitor) {
19 visitors_.remove(new_visitor); 19 visitors_.remove(new_visitor);
20 visitors_.push_back(new_visitor);
21 }
22
23
24 void DispatchingDecoderVisitor::PrependVisitor(DecoderVisitor* new_visitor) {
25 visitors_.remove(new_visitor);
20 visitors_.push_front(new_visitor); 26 visitors_.push_front(new_visitor);
21 } 27 }
22 28
23 29
24 void DispatchingDecoderVisitor::PrependVisitor(DecoderVisitor* new_visitor) {
25 visitors_.remove(new_visitor);
26 visitors_.push_back(new_visitor);
27 }
28
29
30 void DispatchingDecoderVisitor::InsertVisitorBefore( 30 void DispatchingDecoderVisitor::InsertVisitorBefore(
31 DecoderVisitor* new_visitor, DecoderVisitor* registered_visitor) { 31 DecoderVisitor* new_visitor, DecoderVisitor* registered_visitor) {
32 visitors_.remove(new_visitor); 32 visitors_.remove(new_visitor);
33 std::list<DecoderVisitor*>::iterator it; 33 std::list<DecoderVisitor*>::iterator it;
34 for (it = visitors_.begin(); it != visitors_.end(); it++) { 34 for (it = visitors_.begin(); it != visitors_.end(); it++) {
35 if (*it == registered_visitor) { 35 if (*it == registered_visitor) {
36 visitors_.insert(it, new_visitor); 36 visitors_.insert(it, new_visitor);
37 return; 37 return;
38 } 38 }
39 } 39 }
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 (*it)->Visit##A(instr); \ 77 (*it)->Visit##A(instr); \
78 } \ 78 } \
79 } 79 }
80 VISITOR_LIST(DEFINE_VISITOR_CALLERS) 80 VISITOR_LIST(DEFINE_VISITOR_CALLERS)
81 #undef DEFINE_VISITOR_CALLERS 81 #undef DEFINE_VISITOR_CALLERS
82 82
83 83
84 } } // namespace v8::internal 84 } } // namespace v8::internal
85 85
86 #endif // V8_TARGET_ARCH_ARM64 86 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698