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

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

Issue 11421024: Use fingerprint to detect changes in methods that are intrinsified. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month 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/intrinsifier.cc ('k') | runtime/vm/object.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 #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 1420 matching lines...) Expand 10 before | Expand all | Expand 10 after
1431 // Allocates a new Function object representing a closure function, as well as 1431 // Allocates a new Function object representing a closure function, as well as
1432 // a new associated Class object representing the signature class of the 1432 // a new associated Class object representing the signature class of the
1433 // function. 1433 // function.
1434 // The function and the class share the same given name. 1434 // The function and the class share the same given name.
1435 static RawFunction* NewClosureFunction(const String& name, 1435 static RawFunction* NewClosureFunction(const String& name,
1436 const Function& parent, 1436 const Function& parent,
1437 intptr_t token_pos); 1437 intptr_t token_pos);
1438 1438
1439 // Slow function, use in asserts to track changes in important library 1439 // Slow function, use in asserts to track changes in important library
1440 // functions. 1440 // functions.
1441 intptr_t SourceFingerprint() const; 1441 int32_t SourceFingerprint() const;
1442 1442
1443 static const int kCtorPhaseInit = 1 << 0; 1443 static const int kCtorPhaseInit = 1 << 0;
1444 static const int kCtorPhaseBody = 1 << 1; 1444 static const int kCtorPhaseBody = 1 << 1;
1445 static const int kCtorPhaseAll = (kCtorPhaseInit | kCtorPhaseBody); 1445 static const int kCtorPhaseAll = (kCtorPhaseInit | kCtorPhaseBody);
1446 1446
1447 private: 1447 private:
1448 enum KindTagBits { 1448 enum KindTagBits {
1449 kStaticBit = 0, 1449 kStaticBit = 0,
1450 kConstBit = 1, 1450 kConstBit = 1,
1451 kOptimizableBit = 2, 1451 kOptimizableBit = 2,
(...skipping 4523 matching lines...) Expand 10 before | Expand all | Expand 10 after
5975 if (this->CharAt(i) != str.CharAt(begin_index + i)) { 5975 if (this->CharAt(i) != str.CharAt(begin_index + i)) {
5976 return false; 5976 return false;
5977 } 5977 }
5978 } 5978 }
5979 return true; 5979 return true;
5980 } 5980 }
5981 5981
5982 } // namespace dart 5982 } // namespace dart
5983 5983
5984 #endif // VM_OBJECT_H_ 5984 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/intrinsifier.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698