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

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

Issue 12871004: Fixes a build warning about a format string. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 9 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 | « 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) 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 <math.h> // for isnan. 5 #include <math.h> // for isnan.
6 #include <setjmp.h> 6 #include <setjmp.h>
7 #include <stdlib.h> 7 #include <stdlib.h>
8 8
9 #include "vm/globals.h" 9 #include "vm/globals.h"
10 #if defined(TARGET_ARCH_ARM) 10 #if defined(TARGET_ARCH_ARM)
(...skipping 1315 matching lines...) Expand 10 before | Expand all | Expand 10 after
1326 int svc = instr->SvcField(); 1326 int svc = instr->SvcField();
1327 switch (svc) { 1327 switch (svc) {
1328 case kRedirectionSvcCode: { 1328 case kRedirectionSvcCode: {
1329 SimulatorSetjmpBuffer buffer(this); 1329 SimulatorSetjmpBuffer buffer(this);
1330 1330
1331 if (!setjmp(buffer.buffer_)) { 1331 if (!setjmp(buffer.buffer_)) {
1332 int32_t saved_lr = get_register(LR); 1332 int32_t saved_lr = get_register(LR);
1333 Redirection* redirection = Redirection::FromSvcInstruction(instr); 1333 Redirection* redirection = Redirection::FromSvcInstruction(instr);
1334 uword external = redirection->external_function(); 1334 uword external = redirection->external_function();
1335 if (FLAG_trace_sim) { 1335 if (FLAG_trace_sim) {
1336 OS::Print("Call to host function at 0x%d\n", external); 1336 OS::Print("Call to host function at 0x%"Pd"\n", external);
1337 } 1337 }
1338 if (redirection->call_kind() == kRuntimeCall) { 1338 if (redirection->call_kind() == kRuntimeCall) {
1339 NativeArguments arguments; 1339 NativeArguments arguments;
1340 ASSERT(sizeof(NativeArguments) == 4*kWordSize); 1340 ASSERT(sizeof(NativeArguments) == 4*kWordSize);
1341 arguments.isolate_ = reinterpret_cast<Isolate*>(get_register(R0)); 1341 arguments.isolate_ = reinterpret_cast<Isolate*>(get_register(R0));
1342 arguments.argc_tag_ = get_register(R1); 1342 arguments.argc_tag_ = get_register(R1);
1343 arguments.argv_ = reinterpret_cast<RawObject*(*)[]>(get_register(R2)); 1343 arguments.argv_ = reinterpret_cast<RawObject*(*)[]>(get_register(R2));
1344 arguments.retval_ = reinterpret_cast<RawObject**>(get_register(R3)); 1344 arguments.retval_ = reinterpret_cast<RawObject**>(get_register(R3));
1345 SimulatorRuntimeCall target = 1345 SimulatorRuntimeCall target =
1346 reinterpret_cast<SimulatorRuntimeCall>(external); 1346 reinterpret_cast<SimulatorRuntimeCall>(external);
(...skipping 1523 matching lines...) Expand 10 before | Expand all | Expand 10 after
2870 // isolate->ChangeStateToGeneratedCode(); 2870 // isolate->ChangeStateToGeneratedCode();
2871 set_register(kExceptionObjectReg, bit_cast<int32_t>(object.raw())); 2871 set_register(kExceptionObjectReg, bit_cast<int32_t>(object.raw()));
2872 buf->Longjmp(); 2872 buf->Longjmp();
2873 } 2873 }
2874 2874
2875 } // namespace dart 2875 } // namespace dart
2876 2876
2877 #endif // !defined(HOST_ARCH_ARM) 2877 #endif // !defined(HOST_ARCH_ARM)
2878 2878
2879 #endif // defined TARGET_ARCH_ARM 2879 #endif // defined TARGET_ARCH_ARM
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