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

Side by Side Diff: src/lithium-allocator.cc

Issue 9227007: Version 3.8.6 (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: Created 8 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/lithium.h ('k') | src/liveedit.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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 #else 42 #else
43 #error "Unknown architecture." 43 #error "Unknown architecture."
44 #endif 44 #endif
45 45
46 namespace v8 { 46 namespace v8 {
47 namespace internal { 47 namespace internal {
48 48
49 49
50 #define DEFINE_OPERAND_CACHE(name, type) \ 50 #define DEFINE_OPERAND_CACHE(name, type) \
51 name name::cache[name::kNumCachedOperands]; \ 51 name name::cache[name::kNumCachedOperands]; \
52 void name::SetupCache() { \ 52 void name::SetUpCache() { \
53 for (int i = 0; i < kNumCachedOperands; i++) { \ 53 for (int i = 0; i < kNumCachedOperands; i++) { \
54 cache[i].ConvertTo(type, i); \ 54 cache[i].ConvertTo(type, i); \
55 } \ 55 } \
56 } \ 56 } \
57 static bool name##_initialize() { \ 57 static bool name##_initialize() { \
58 name::SetupCache(); \ 58 name::SetUpCache(); \
59 return true; \ 59 return true; \
60 } \ 60 } \
61 static bool name##_cache_initialized = name##_initialize(); 61 static bool name##_cache_initialized = name##_initialize();
62 62
63 DEFINE_OPERAND_CACHE(LConstantOperand, CONSTANT_OPERAND) 63 DEFINE_OPERAND_CACHE(LConstantOperand, CONSTANT_OPERAND)
64 DEFINE_OPERAND_CACHE(LStackSlot, STACK_SLOT) 64 DEFINE_OPERAND_CACHE(LStackSlot, STACK_SLOT)
65 DEFINE_OPERAND_CACHE(LDoubleStackSlot, DOUBLE_STACK_SLOT) 65 DEFINE_OPERAND_CACHE(LDoubleStackSlot, DOUBLE_STACK_SLOT)
66 DEFINE_OPERAND_CACHE(LRegister, REGISTER) 66 DEFINE_OPERAND_CACHE(LRegister, REGISTER)
67 DEFINE_OPERAND_CACHE(LDoubleRegister, DOUBLE_REGISTER) 67 DEFINE_OPERAND_CACHE(LDoubleRegister, DOUBLE_REGISTER)
68 68
(...skipping 2053 matching lines...) Expand 10 before | Expand all | Expand 10 after
2122 LiveRange* current = live_ranges()->at(i); 2122 LiveRange* current = live_ranges()->at(i);
2123 if (current != NULL) current->Verify(); 2123 if (current != NULL) current->Verify();
2124 } 2124 }
2125 } 2125 }
2126 2126
2127 2127
2128 #endif 2128 #endif
2129 2129
2130 2130
2131 } } // namespace v8::internal 2131 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/lithium.h ('k') | src/liveedit.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698