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

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

Issue 1561833006: Improve token position for the entry CheckStackoverflowInstr (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 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 | « runtime/vm/intermediate_language.h ('k') | 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) 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 #include "vm/intermediate_language.h" 5 #include "vm/intermediate_language.h"
6 6
7 #include "vm/bit_vector.h" 7 #include "vm/bit_vector.h"
8 #include "vm/bootstrap.h" 8 #include "vm/bootstrap.h"
9 #include "vm/compiler.h" 9 #include "vm/compiler.h"
10 #include "vm/constant_propagator.h" 10 #include "vm/constant_propagator.h"
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 } 413 }
414 414
415 415
416 const Field& LoadStaticFieldInstr::StaticField() const { 416 const Field& LoadStaticFieldInstr::StaticField() const {
417 Field& field = Field::Handle(); 417 Field& field = Field::Handle();
418 field ^= field_value()->BoundConstant().raw(); 418 field ^= field_value()->BoundConstant().raw();
419 return field; 419 return field;
420 } 420 }
421 421
422 422
423 ConstantInstr::ConstantInstr(const Object& value) : value_(value) { 423 ConstantInstr::ConstantInstr(const Object& value, intptr_t token_pos)
424 : value_(value),
425 token_pos_(token_pos) {
424 // Check that the value is not an incorrect Integer representation. 426 // Check that the value is not an incorrect Integer representation.
425 ASSERT(!value.IsBigint() || !Bigint::Cast(value).FitsIntoSmi()); 427 ASSERT(!value.IsBigint() || !Bigint::Cast(value).FitsIntoSmi());
426 ASSERT(!value.IsBigint() || !Bigint::Cast(value).FitsIntoInt64()); 428 ASSERT(!value.IsBigint() || !Bigint::Cast(value).FitsIntoInt64());
427 ASSERT(!value.IsMint() || !Smi::IsValid(Mint::Cast(value).AsInt64Value())); 429 ASSERT(!value.IsMint() || !Smi::IsValid(Mint::Cast(value).AsInt64Value()));
428 } 430 }
429 431
430 432
431 bool ConstantInstr::AttributesEqual(Instruction* other) const { 433 bool ConstantInstr::AttributesEqual(Instruction* other) const {
432 ConstantInstr* other_constant = other->AsConstant(); 434 ConstantInstr* other_constant = other->AsConstant();
433 ASSERT(other_constant != NULL); 435 ASSERT(other_constant != NULL);
(...skipping 3260 matching lines...) Expand 10 before | Expand all | Expand 10 after
3694 set_native_c_function(native_function); 3696 set_native_c_function(native_function);
3695 function().SetIsNativeAutoSetupScope(auto_setup_scope); 3697 function().SetIsNativeAutoSetupScope(auto_setup_scope);
3696 Dart_NativeEntryResolver resolver = library.native_entry_resolver(); 3698 Dart_NativeEntryResolver resolver = library.native_entry_resolver();
3697 bool is_bootstrap_native = Bootstrap::IsBootstapResolver(resolver); 3699 bool is_bootstrap_native = Bootstrap::IsBootstapResolver(resolver);
3698 set_is_bootstrap_native(is_bootstrap_native); 3700 set_is_bootstrap_native(is_bootstrap_native);
3699 } 3701 }
3700 3702
3701 #undef __ 3703 #undef __
3702 3704
3703 } // namespace dart 3705 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698