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

Side by Side Diff: src/arm64/simulator-arm64.cc

Issue 226023002: ARM64: fix simulator constructor (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 | « 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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 decoder_->AppendVisitor(instrument_); 385 decoder_->AppendVisitor(instrument_);
386 } 386 }
387 } 387 }
388 388
389 389
390 Simulator::Simulator() 390 Simulator::Simulator()
391 : decoder_(NULL), 391 : decoder_(NULL),
392 last_debugger_input_(NULL), 392 last_debugger_input_(NULL),
393 log_parameters_(NO_PARAM), 393 log_parameters_(NO_PARAM),
394 isolate_(NULL) { 394 isolate_(NULL) {
395 Init(NULL); 395 Init(stdout);
396 CHECK(!FLAG_trace_sim && !FLAG_log_instruction_stats); 396 CHECK(!FLAG_trace_sim && !FLAG_log_instruction_stats);
397 } 397 }
398 398
399 399
400 void Simulator::Init(FILE* stream) { 400 void Simulator::Init(FILE* stream) {
401 ResetState(); 401 ResetState();
402 402
403 // Allocate and setup the simulator stack. 403 // Allocate and setup the simulator stack.
404 stack_size_ = (FLAG_sim_stack_size * KB) + (2 * stack_protection_size_); 404 stack_size_ = (FLAG_sim_stack_size * KB) + (2 * stack_protection_size_);
405 stack_ = new byte[stack_size_]; 405 stack_ = new byte[stack_size_];
(...skipping 3245 matching lines...) Expand 10 before | Expand all | Expand 10 after
3651 default: 3651 default:
3652 UNIMPLEMENTED(); 3652 UNIMPLEMENTED();
3653 } 3653 }
3654 } 3654 }
3655 3655
3656 #endif // USE_SIMULATOR 3656 #endif // USE_SIMULATOR
3657 3657
3658 } } // namespace v8::internal 3658 } } // namespace v8::internal
3659 3659
3660 #endif // V8_TARGET_ARCH_ARM64 3660 #endif // V8_TARGET_ARCH_ARM64
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