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

Side by Side Diff: runtime/vm/intermediate_language.cc

Issue 10407018: Start porting fast typechecks to x64. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 7 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 | « runtime/vm/intermediate_language.h ('k') | runtime/vm/parser.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 (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/intermediate_language.h" 5 #include "vm/intermediate_language.h"
6 6
7 #include "vm/bit_vector.h" 7 #include "vm/bit_vector.h"
8 #include "vm/flow_graph_builder.h" 8 #include "vm/flow_graph_builder.h"
9 #include "vm/object.h" 9 #include "vm/object.h"
10 #include "vm/os.h" 10 #include "vm/os.h"
(...skipping 29 matching lines...) Expand all
40 Instruction* current = block_order_[i]->Accept(this); 40 Instruction* current = block_order_[i]->Accept(this);
41 while ((current != NULL) && !current->IsBlockEntry()) { 41 while ((current != NULL) && !current->IsBlockEntry()) {
42 current = current->Accept(this); 42 current = current->Accept(this);
43 } 43 }
44 } 44 }
45 } 45 }
46 46
47 47
48 // ==== Per-instruction input counts. 48 // ==== Per-instruction input counts.
49 intptr_t AssertAssignableComp::InputCount() const { 49 intptr_t AssertAssignableComp::InputCount() const {
50 // Value and optional instantiator type arguments. 50 // Value and optional instantiator and instantiator type arguments.
51 return (instantiator_type_arguments() == NULL) ? 1 : 2; 51 intptr_t count = 1;
52 if (instantiator() != NULL) count++;
53 if (instantiator_type_arguments() != NULL) count++;
54 return count;
52 } 55 }
53 56
54 57
55 intptr_t InstanceOfComp::InputCount() const { 58 intptr_t InstanceOfComp::InputCount() const {
56 // Value and optional type_arguments. 59 // Value and optional instantiator and instantiator type_arguments.
57 return (type_arguments() == NULL) ? 1 : 2; 60 intptr_t count = 1;
61 if (instantiator() != NULL) count++;
62 if (type_arguments() != NULL) count++;
63 return count;
58 } 64 }
59 65
60 66
61 intptr_t CreateClosureComp::InputCount() const { 67 intptr_t CreateClosureComp::InputCount() const {
62 // Optional type arguments. 68 // Optional type arguments.
63 return (type_arguments() == NULL) ? 0 : 1; 69 return (type_arguments() == NULL) ? 0 : 1;
64 } 70 }
65 71
66 72
67 intptr_t InstanceCallComp::InputCount() const { 73 intptr_t InstanceCallComp::InputCount() const {
(...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after
542 } 548 }
543 549
544 550
545 RawAbstractType* CatchEntryComp::StaticType() const { 551 RawAbstractType* CatchEntryComp::StaticType() const {
546 UNREACHABLE(); 552 UNREACHABLE();
547 return AbstractType::null(); 553 return AbstractType::null();
548 } 554 }
549 555
550 556
551 } // namespace dart 557 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language.h ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698