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

Side by Side Diff: src/platform-linux.cc

Issue 143003013: Initial patch for a64. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « src/objects.h ('k') | src/regexp-macro-assembler.h » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 if (FLAG_break_on_abort) { 411 if (FLAG_break_on_abort) {
412 DebugBreak(); 412 DebugBreak();
413 } 413 }
414 abort(); 414 abort();
415 } 415 }
416 416
417 417
418 void OS::DebugBreak() { 418 void OS::DebugBreak() {
419 // TODO(lrn): Introduce processor define for runtime system (!= V8_ARCH_x, 419 // TODO(lrn): Introduce processor define for runtime system (!= V8_ARCH_x,
420 // which is the architecture of generated code). 420 // which is the architecture of generated code).
421 #if (defined(__arm__) || defined(__thumb__)) 421 #if defined(__aarch64__)
422 asm("hlt 0");
423 #elif (defined(__arm__) || defined(__thumb__))
422 asm("bkpt 0"); 424 asm("bkpt 0");
423 #elif defined(__mips__) 425 #elif defined(__mips__)
424 asm("break"); 426 asm("break");
425 #elif defined(__native_client__) 427 #elif defined(__native_client__)
426 asm("hlt"); 428 asm("hlt");
427 #else 429 #else
428 asm("int $3"); 430 asm("int $3");
429 #endif 431 #endif
430 } 432 }
431 433
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after
1000 limit_mutex = CreateMutex(); 1002 limit_mutex = CreateMutex();
1001 } 1003 }
1002 1004
1003 1005
1004 void OS::TearDown() { 1006 void OS::TearDown() {
1005 delete limit_mutex; 1007 delete limit_mutex;
1006 } 1008 }
1007 1009
1008 1010
1009 } } // namespace v8::internal 1011 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/regexp-macro-assembler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698