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

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

Issue 11694003: In unoptimized code use call for instanceof instead of inlined checks. This allows us to collect ty… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: 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
« no previous file with comments | « runtime/vm/flow_graph_optimizer.cc ('k') | runtime/vm/stack_frame.h » ('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 #ifndef VM_INTERMEDIATE_LANGUAGE_H_ 5 #ifndef VM_INTERMEDIATE_LANGUAGE_H_
6 #define VM_INTERMEDIATE_LANGUAGE_H_ 6 #define VM_INTERMEDIATE_LANGUAGE_H_
7 7
8 #include "vm/allocation.h" 8 #include "vm/allocation.h"
9 #include "vm/ast.h" 9 #include "vm/ast.h"
10 #include "vm/growable_array.h" 10 #include "vm/growable_array.h"
(...skipping 2034 matching lines...) Expand 10 before | Expand all | Expand 10 after
2045 token_kind_(token_kind), 2045 token_kind_(token_kind),
2046 arguments_(arguments), 2046 arguments_(arguments),
2047 argument_names_(argument_names), 2047 argument_names_(argument_names),
2048 checked_argument_count_(checked_argument_count) { 2048 checked_argument_count_(checked_argument_count) {
2049 ASSERT(function_name.IsNotTemporaryScopedHandle()); 2049 ASSERT(function_name.IsNotTemporaryScopedHandle());
2050 ASSERT(!arguments->is_empty()); 2050 ASSERT(!arguments->is_empty());
2051 ASSERT(argument_names.IsZoneHandle()); 2051 ASSERT(argument_names.IsZoneHandle());
2052 ASSERT(Token::IsBinaryOperator(token_kind) || 2052 ASSERT(Token::IsBinaryOperator(token_kind) ||
2053 Token::IsPrefixOperator(token_kind) || 2053 Token::IsPrefixOperator(token_kind) ||
2054 Token::IsIndexOperator(token_kind) || 2054 Token::IsIndexOperator(token_kind) ||
2055 Token::IsTypeTestOperator(token_kind) ||
2055 token_kind == Token::kGET || 2056 token_kind == Token::kGET ||
2056 token_kind == Token::kSET || 2057 token_kind == Token::kSET ||
2057 token_kind == Token::kILLEGAL); 2058 token_kind == Token::kILLEGAL);
2058 } 2059 }
2059 2060
2060 DECLARE_INSTRUCTION(InstanceCall) 2061 DECLARE_INSTRUCTION(InstanceCall)
2061 virtual RawAbstractType* CompileType() const; 2062 virtual RawAbstractType* CompileType() const;
2062 2063
2063 const ICData* ic_data() const { return ic_data_; } 2064 const ICData* ic_data() const { return ic_data_; }
2064 bool HasICData() const { 2065 bool HasICData() const {
(...skipping 2257 matching lines...) Expand 10 before | Expand all | Expand 10 after
4322 ForwardInstructionIterator* current_iterator_; 4323 ForwardInstructionIterator* current_iterator_;
4323 4324
4324 private: 4325 private:
4325 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); 4326 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor);
4326 }; 4327 };
4327 4328
4328 4329
4329 } // namespace dart 4330 } // namespace dart
4330 4331
4331 #endif // VM_INTERMEDIATE_LANGUAGE_H_ 4332 #endif // VM_INTERMEDIATE_LANGUAGE_H_
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_optimizer.cc ('k') | runtime/vm/stack_frame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698