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

Side by Side Diff: src/ia32/assembler-ia32-inl.h

Issue 2825008: Move definition of NegateConditon from assembler*-inl.h files to... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 years, 6 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/ia32/assembler-ia32.h ('k') | src/x64/assembler-x64.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 (c) 1994-2006 Sun Microsystems Inc. 1 // Copyright (c) 1994-2006 Sun Microsystems Inc.
2 // All Rights Reserved. 2 // All Rights Reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // - Redistributions of source code must retain the above copyright notice, 8 // - Redistributions of source code must retain the above copyright notice,
9 // this list of conditions and the following disclaimer. 9 // this list of conditions and the following disclaimer.
10 // 10 //
(...skipping 25 matching lines...) Expand all
36 36
37 #ifndef V8_IA32_ASSEMBLER_IA32_INL_H_ 37 #ifndef V8_IA32_ASSEMBLER_IA32_INL_H_
38 #define V8_IA32_ASSEMBLER_IA32_INL_H_ 38 #define V8_IA32_ASSEMBLER_IA32_INL_H_
39 39
40 #include "cpu.h" 40 #include "cpu.h"
41 #include "debug.h" 41 #include "debug.h"
42 42
43 namespace v8 { 43 namespace v8 {
44 namespace internal { 44 namespace internal {
45 45
46 Condition NegateCondition(Condition cc) {
47 return static_cast<Condition>(cc ^ 1);
48 }
49
50 46
51 // The modes possibly affected by apply must be in kApplyMask. 47 // The modes possibly affected by apply must be in kApplyMask.
52 void RelocInfo::apply(intptr_t delta) { 48 void RelocInfo::apply(intptr_t delta) {
53 if (rmode_ == RUNTIME_ENTRY || IsCodeTarget(rmode_)) { 49 if (rmode_ == RUNTIME_ENTRY || IsCodeTarget(rmode_)) {
54 int32_t* p = reinterpret_cast<int32_t*>(pc_); 50 int32_t* p = reinterpret_cast<int32_t*>(pc_);
55 *p -= delta; // Relocate entry. 51 *p -= delta; // Relocate entry.
56 } else if (rmode_ == JS_RETURN && IsPatchedReturnSequence()) { 52 } else if (rmode_ == JS_RETURN && IsPatchedReturnSequence()) {
57 // Special handling of js_return when a break point is set (call 53 // Special handling of js_return when a break point is set (call
58 // instruction has been inserted). 54 // instruction has been inserted).
59 int32_t* p = reinterpret_cast<int32_t*>(pc_ + 1); 55 int32_t* p = reinterpret_cast<int32_t*>(pc_ + 1);
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 351
356 Operand::Operand(int32_t disp, RelocInfo::Mode rmode) { 352 Operand::Operand(int32_t disp, RelocInfo::Mode rmode) {
357 // [disp/r] 353 // [disp/r]
358 set_modrm(0, ebp); 354 set_modrm(0, ebp);
359 set_dispr(disp, rmode); 355 set_dispr(disp, rmode);
360 } 356 }
361 357
362 } } // namespace v8::internal 358 } } // namespace v8::internal
363 359
364 #endif // V8_IA32_ASSEMBLER_IA32_INL_H_ 360 #endif // V8_IA32_ASSEMBLER_IA32_INL_H_
OLDNEW
« no previous file with comments | « src/ia32/assembler-ia32.h ('k') | src/x64/assembler-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698