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

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
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 3260 matching lines...) Expand 10 before | Expand all | Expand 10 after
3271 const Function& function() const { return ast_node_.function(); } 3271 const Function& function() const { return ast_node_.function(); }
3272 3272
3273 const String& native_name() const { 3273 const String& native_name() const {
3274 return ast_node_.native_c_function_name(); 3274 return ast_node_.native_c_function_name();
3275 } 3275 }
3276 3276
3277 NativeFunction native_c_function() const { 3277 NativeFunction native_c_function() const {
3278 return ast_node_.native_c_function(); 3278 return ast_node_.native_c_function();
3279 } 3279 }
3280 3280
3281 bool is_bootstrap_native() const {
3282 return ast_node_.is_bootstrap_native();
3283 }
3284
3281 virtual void PrintOperandsTo(BufferFormatter* f) const; 3285 virtual void PrintOperandsTo(BufferFormatter* f) const;
3282 3286
3283 virtual bool CanDeoptimize() const { return false; } 3287 virtual bool CanDeoptimize() const { return false; }
3284 3288
3285 virtual EffectSet Effects() const { return EffectSet::All(); } 3289 virtual EffectSet Effects() const { return EffectSet::All(); }
3286 3290
3287 virtual bool MayThrow() const { 3291 virtual bool MayThrow() const {
3288 UNREACHABLE(); 3292 UNREACHABLE();
3289 return true; 3293 return true;
3290 } 3294 }
(...skipping 3340 matching lines...) Expand 10 before | Expand all | Expand 10 after
6631 ForwardInstructionIterator* current_iterator_; 6635 ForwardInstructionIterator* current_iterator_;
6632 6636
6633 private: 6637 private:
6634 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); 6638 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor);
6635 }; 6639 };
6636 6640
6637 6641
6638 } // namespace dart 6642 } // namespace dart
6639 6643
6640 #endif // VM_INTERMEDIATE_LANGUAGE_H_ 6644 #endif // VM_INTERMEDIATE_LANGUAGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698