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

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

Issue 14012005: Implement rethrow statement (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 8 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/object.h ('k') | runtime/vm/parser.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 #include "vm/object.h" 5 #include "vm/object.h"
6 6
7 #include "include/dart_api.h" 7 #include "include/dart_api.h"
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "vm/assembler.h" 9 #include "vm/assembler.h"
10 #include "vm/bigint_operations.h" 10 #include "vm/bigint_operations.h"
(...skipping 4443 matching lines...) Expand 10 before | Expand all | Expand 10 after
4454 } 4454 }
4455 result = 31 * result + val; 4455 result = 31 * result + val;
4456 tokens_iterator.Advance(); 4456 tokens_iterator.Advance();
4457 } 4457 }
4458 result = result & ((static_cast<uint32_t>(1) << 31) - 1); 4458 result = result & ((static_cast<uint32_t>(1) << 31) - 1);
4459 ASSERT(result <= static_cast<uint32_t>(kMaxInt32)); 4459 ASSERT(result <= static_cast<uint32_t>(kMaxInt32));
4460 return result; 4460 return result;
4461 } 4461 }
4462 4462
4463 4463
4464 bool Function::CheckSourceFingerprint(intptr_t fp) const { 4464 bool Function::CheckSourceFingerprint(int32_t fp) const {
4465 if (SourceFingerprint() != fp) { 4465 if (SourceFingerprint() != fp) {
4466 OS::Print("FP mismatch while recognizing method %s:" 4466 const bool recalculatingFingerprints = false;
4467 " expecting %"Pd" found %d\n", 4467 if (recalculatingFingerprints) {
4468 ToFullyQualifiedCString(), 4468 // This output can be copied into a file, then used with sed
4469 fp, 4469 // to replace the old values.
4470 SourceFingerprint()); 4470 // sed -i .bak -f /tmp/newkeys runtime/vm/intrinsifier.h
4471 return false; 4471 OS::Print("s/%d/%d/\n", fp, SourceFingerprint());
4472 } else {
4473 OS::Print("FP mismatch while recognizing method %s:"
4474 " expecting %d found %d\n",
4475 ToFullyQualifiedCString(),
4476 fp,
4477 SourceFingerprint());
4478 return false;
4479 }
4472 } 4480 }
4473 return true; 4481 return true;
4474 } 4482 }
4475 4483
4476 4484
4477 const char* Function::ToCString() const { 4485 const char* Function::ToCString() const {
4478 const char* static_str = is_static() ? " static" : ""; 4486 const char* static_str = is_static() ? " static" : "";
4479 const char* abstract_str = is_abstract() ? " abstract" : ""; 4487 const char* abstract_str = is_abstract() ? " abstract" : "";
4480 const char* kind_str = NULL; 4488 const char* kind_str = NULL;
4481 const char* const_str = is_const() ? " const" : ""; 4489 const char* const_str = is_const() ? " const" : "";
(...skipping 8607 matching lines...) Expand 10 before | Expand all | Expand 10 after
13089 } 13097 }
13090 return result.raw(); 13098 return result.raw();
13091 } 13099 }
13092 13100
13093 13101
13094 const char* WeakProperty::ToCString() const { 13102 const char* WeakProperty::ToCString() const {
13095 return "_WeakProperty"; 13103 return "_WeakProperty";
13096 } 13104 }
13097 13105
13098 } // namespace dart 13106 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/object.h ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698