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

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

Issue 1646543006: Move static before type. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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
« 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 (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_OBJECT_H_ 5 #ifndef VM_OBJECT_H_
6 #define VM_OBJECT_H_ 6 #define VM_OBJECT_H_
7 7
8 #include "include/dart_api.h" 8 #include "include/dart_api.h"
9 #include "platform/assert.h" 9 #include "platform/assert.h"
10 #include "platform/utils.h" 10 #include "platform/utils.h"
(...skipping 2507 matching lines...) Expand 10 before | Expand all | Expand 10 after
2518 // Returns true if this function represents a non implicit closure function. 2518 // Returns true if this function represents a non implicit closure function.
2519 bool IsNonImplicitClosureFunction() const { 2519 bool IsNonImplicitClosureFunction() const {
2520 return IsClosureFunction() && !IsImplicitClosureFunction(); 2520 return IsClosureFunction() && !IsImplicitClosureFunction();
2521 } 2521 }
2522 2522
2523 // Returns true if this function represents an implicit static closure 2523 // Returns true if this function represents an implicit static closure
2524 // function. 2524 // function.
2525 bool IsImplicitStaticClosureFunction() const { 2525 bool IsImplicitStaticClosureFunction() const {
2526 return is_static() && IsImplicitClosureFunction(); 2526 return is_static() && IsImplicitClosureFunction();
2527 } 2527 }
2528 bool static IsImplicitStaticClosureFunction(RawFunction* func); 2528 static bool IsImplicitStaticClosureFunction(RawFunction* func);
2529 2529
2530 // Returns true if this function represents an implicit instance closure 2530 // Returns true if this function represents an implicit instance closure
2531 // function. 2531 // function.
2532 bool IsImplicitInstanceClosureFunction() const { 2532 bool IsImplicitInstanceClosureFunction() const {
2533 return !is_static() && IsImplicitClosureFunction(); 2533 return !is_static() && IsImplicitClosureFunction();
2534 } 2534 }
2535 2535
2536 bool IsConstructorClosureFunction() const; 2536 bool IsConstructorClosureFunction() const;
2537 2537
2538 // Returns true if this function represents a local function. 2538 // Returns true if this function represents a local function.
(...skipping 5756 matching lines...) Expand 10 before | Expand all | Expand 10 after
8295 8295
8296 8296
8297 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 8297 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
8298 intptr_t index) { 8298 intptr_t index) {
8299 return array.At((index * kEntryLength) + kTargetFunctionIndex); 8299 return array.At((index * kEntryLength) + kTargetFunctionIndex);
8300 } 8300 }
8301 8301
8302 } // namespace dart 8302 } // namespace dart
8303 8303
8304 #endif // VM_OBJECT_H_ 8304 #endif // VM_OBJECT_H_
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