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

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

Issue 22303002: Auto create ApiLocalScope before calling native functions, this ensures that (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 4 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/code_generator_test.cc ('k') | runtime/vm/intermediate_language_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 (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 3262 matching lines...) Expand 10 before | Expand all | Expand 10 after
3273 const Function& function() const { return ast_node_.function(); } 3273 const Function& function() const { return ast_node_.function(); }
3274 3274
3275 const String& native_name() const { 3275 const String& native_name() const {
3276 return ast_node_.native_c_function_name(); 3276 return ast_node_.native_c_function_name();
3277 } 3277 }
3278 3278
3279 NativeFunction native_c_function() const { 3279 NativeFunction native_c_function() const {
3280 return ast_node_.native_c_function(); 3280 return ast_node_.native_c_function();
3281 } 3281 }
3282 3282
3283 bool is_bootstrap_native() const {
3284 return ast_node_.is_bootstrap_native();
3285 }
3286
3283 virtual void PrintOperandsTo(BufferFormatter* f) const; 3287 virtual void PrintOperandsTo(BufferFormatter* f) const;
3284 3288
3285 virtual bool CanDeoptimize() const { return false; } 3289 virtual bool CanDeoptimize() const { return false; }
3286 3290
3287 virtual EffectSet Effects() const { return EffectSet::All(); } 3291 virtual EffectSet Effects() const { return EffectSet::All(); }
3288 3292
3289 virtual bool MayThrow() const { 3293 virtual bool MayThrow() const {
3290 UNREACHABLE(); 3294 UNREACHABLE();
3291 return true; 3295 return true;
3292 } 3296 }
(...skipping 3345 matching lines...) Expand 10 before | Expand all | Expand 10 after
6638 ForwardInstructionIterator* current_iterator_; 6642 ForwardInstructionIterator* current_iterator_;
6639 6643
6640 private: 6644 private:
6641 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); 6645 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor);
6642 }; 6646 };
6643 6647
6644 6648
6645 } // namespace dart 6649 } // namespace dart
6646 6650
6647 #endif // VM_INTERMEDIATE_LANGUAGE_H_ 6651 #endif // VM_INTERMEDIATE_LANGUAGE_H_
OLDNEW
« no previous file with comments | « runtime/vm/code_generator_test.cc ('k') | runtime/vm/intermediate_language_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698