Chromium Code Reviews| OLD | NEW |
|---|---|
| 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/globals.h" // Needed here to get TARGET_ARCH_IA32. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_IA32. |
| 6 #if defined(TARGET_ARCH_IA32) | 6 #if defined(TARGET_ARCH_IA32) |
| 7 | 7 |
| 8 #include "vm/intermediate_language.h" | 8 #include "vm/intermediate_language.h" |
| 9 | 9 |
| 10 #include "lib/error.h" | 10 #include "lib/error.h" |
| (...skipping 1015 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1026 Register result = locs()->out().reg(); | 1026 Register result = locs()->out().reg(); |
| 1027 __ LoadObject(result, field()); | 1027 __ LoadObject(result, field()); |
| 1028 __ movl(result, FieldAddress(result, Field::value_offset())); | 1028 __ movl(result, FieldAddress(result, Field::value_offset())); |
| 1029 } | 1029 } |
| 1030 | 1030 |
| 1031 | 1031 |
| 1032 LocationSummary* StoreStaticFieldInstr::MakeLocationSummary() const { | 1032 LocationSummary* StoreStaticFieldInstr::MakeLocationSummary() const { |
| 1033 LocationSummary* locs = new LocationSummary(1, 1, LocationSummary::kNoCall); | 1033 LocationSummary* locs = new LocationSummary(1, 1, LocationSummary::kNoCall); |
| 1034 locs->set_in(0, Location::RequiresRegister()); | 1034 locs->set_in(0, Location::RequiresRegister()); |
| 1035 locs->set_temp(0, Location::RequiresRegister()); | 1035 locs->set_temp(0, Location::RequiresRegister()); |
| 1036 locs->set_out(Location::SameAsFirstInput()); | 1036 locs->set_out(is_used() |
|
Kevin Millikin (Google)
2012/09/10 12:28:02
This should be:
locs->set_out(is_used()
Florian Schneider
2012/09/10 13:05:41
Done.
| |
| 1037 ? Location::SameAsFirstInput() | |
| 1038 : Location::NoLocation()); | |
| 1037 return locs; | 1039 return locs; |
| 1038 } | 1040 } |
| 1039 | 1041 |
| 1040 | 1042 |
| 1041 void StoreStaticFieldInstr::EmitNativeCode(FlowGraphCompiler* compiler) { | 1043 void StoreStaticFieldInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
| 1042 Register value = locs()->in(0).reg(); | 1044 Register value = locs()->in(0).reg(); |
| 1043 Register temp = locs()->temp(0).reg(); | 1045 Register temp = locs()->temp(0).reg(); |
| 1044 ASSERT(locs()->out().reg() == value); | 1046 ASSERT(!is_used() || (locs()->out().reg() == value)); |
| 1045 | 1047 |
| 1046 __ LoadObject(temp, field()); | 1048 __ LoadObject(temp, field()); |
| 1047 if (this->value()->NeedsStoreBuffer()) { | 1049 if (this->value()->NeedsStoreBuffer()) { |
| 1048 __ StoreIntoObject(temp, FieldAddress(temp, Field::value_offset()), value); | 1050 __ StoreIntoObject(temp, FieldAddress(temp, Field::value_offset()), value); |
| 1049 } else { | 1051 } else { |
| 1050 __ StoreIntoObjectNoBarrier( | 1052 __ StoreIntoObjectNoBarrier( |
| 1051 temp, FieldAddress(temp, Field::value_offset()), value); | 1053 temp, FieldAddress(temp, Field::value_offset()), value); |
| 1052 } | 1054 } |
| 1053 } | 1055 } |
| 1054 | 1056 |
| (...skipping 1228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2283 __ j(ABOVE_EQUAL, deopt); | 2285 __ j(ABOVE_EQUAL, deopt); |
| 2284 } | 2286 } |
| 2285 } | 2287 } |
| 2286 | 2288 |
| 2287 | 2289 |
| 2288 } // namespace dart | 2290 } // namespace dart |
| 2289 | 2291 |
| 2290 #undef __ | 2292 #undef __ |
| 2291 | 2293 |
| 2292 #endif // defined TARGET_ARCH_X64 | 2294 #endif // defined TARGET_ARCH_X64 |
| OLD | NEW |