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

Side by Side Diff: src/ia32/cpu-ia32.cc

Issue 13704002: Minor Native Client specific changes to files in src. (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: Cleaner disabling of profiling. Created 7 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
« no previous file with comments | « src/d8.cc ('k') | src/platform-linux.cc » ('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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 #endif 72 #endif
73 } 73 }
74 74
75 75
76 void CPU::DebugBreak() { 76 void CPU::DebugBreak() {
77 #ifdef _MSC_VER 77 #ifdef _MSC_VER
78 // To avoid Visual Studio runtime support the following code can be used 78 // To avoid Visual Studio runtime support the following code can be used
79 // instead 79 // instead
80 // __asm { int 3 } 80 // __asm { int 3 }
81 __debugbreak(); 81 __debugbreak();
82 #elif defined(__native_client__)
83 asm("hlt");
82 #else 84 #else
83 asm("int $3"); 85 asm("int $3");
84 #endif 86 #endif
85 } 87 }
86 88
87 } } // namespace v8::internal 89 } } // namespace v8::internal
88 90
89 #endif // V8_TARGET_ARCH_IA32 91 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/d8.cc ('k') | src/platform-linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698