| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 case C_BUILTIN: { | 124 case C_BUILTIN: { |
| 125 ExternalReference ref(static_cast<Builtins::CFunctionId>(id), isolate); | 125 ExternalReference ref(static_cast<Builtins::CFunctionId>(id), isolate); |
| 126 address = ref.address(); | 126 address = ref.address(); |
| 127 break; | 127 break; |
| 128 } | 128 } |
| 129 case BUILTIN: { | 129 case BUILTIN: { |
| 130 ExternalReference ref(static_cast<Builtins::Name>(id), isolate); | 130 ExternalReference ref(static_cast<Builtins::Name>(id), isolate); |
| 131 address = ref.address(); | 131 address = ref.address(); |
| 132 break; | 132 break; |
| 133 } | 133 } |
| 134 case RUNTIME_FUNCTION: { | 134 case RUNTIME_FUNCTION_: { |
| 135 ExternalReference ref(static_cast<Runtime::FunctionId>(id), isolate); | 135 ExternalReference ref(static_cast<Runtime::FunctionId>(id), isolate); |
| 136 address = ref.address(); | 136 address = ref.address(); |
| 137 break; | 137 break; |
| 138 } | 138 } |
| 139 case IC_UTILITY: { | 139 case IC_UTILITY: { |
| 140 ExternalReference ref(IC_Utility(static_cast<IC::UtilityId>(id)), | 140 ExternalReference ref(IC_Utility(static_cast<IC::UtilityId>(id)), |
| 141 isolate); | 141 isolate); |
| 142 address = ref.address(); | 142 address = ref.address(); |
| 143 break; | 143 break; |
| 144 } | 144 } |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 #define DEF_ENTRY_A(name, kind, state, extra) DEF_ENTRY_C(name, ignored) | 201 #define DEF_ENTRY_A(name, kind, state, extra) DEF_ENTRY_C(name, ignored) |
| 202 | 202 |
| 203 BUILTIN_LIST_C(DEF_ENTRY_C) | 203 BUILTIN_LIST_C(DEF_ENTRY_C) |
| 204 BUILTIN_LIST_A(DEF_ENTRY_A) | 204 BUILTIN_LIST_A(DEF_ENTRY_A) |
| 205 BUILTIN_LIST_DEBUG_A(DEF_ENTRY_A) | 205 BUILTIN_LIST_DEBUG_A(DEF_ENTRY_A) |
| 206 #undef DEF_ENTRY_C | 206 #undef DEF_ENTRY_C |
| 207 #undef DEF_ENTRY_A | 207 #undef DEF_ENTRY_A |
| 208 | 208 |
| 209 // Runtime functions | 209 // Runtime functions |
| 210 #define RUNTIME_ENTRY(name, nargs, ressize) \ | 210 #define RUNTIME_ENTRY(name, nargs, ressize) \ |
| 211 { RUNTIME_FUNCTION, \ | 211 { RUNTIME_FUNCTION_, \ |
| 212 Runtime::k##name, \ | 212 Runtime::k##name, \ |
| 213 "Runtime::" #name }, | 213 "Runtime::" #name }, |
| 214 | 214 |
| 215 RUNTIME_FUNCTION_LIST(RUNTIME_ENTRY) | 215 RUNTIME_FUNCTION_LIST(RUNTIME_ENTRY) |
| 216 #undef RUNTIME_ENTRY | 216 #undef RUNTIME_ENTRY |
| 217 | 217 |
| 218 // IC utilities | 218 // IC utilities |
| 219 #define IC_ENTRY(name) \ | 219 #define IC_ENTRY(name) \ |
| 220 { IC_UTILITY, \ | 220 { IC_UTILITY, \ |
| 221 IC::k##name, \ | 221 IC::k##name, \ |
| (...skipping 1343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1565 fullness_[space] = RoundUp(fullness_[space], Page::kPageSize); | 1565 fullness_[space] = RoundUp(fullness_[space], Page::kPageSize); |
| 1566 } | 1566 } |
| 1567 } | 1567 } |
| 1568 int allocation_address = fullness_[space]; | 1568 int allocation_address = fullness_[space]; |
| 1569 fullness_[space] = allocation_address + size; | 1569 fullness_[space] = allocation_address + size; |
| 1570 return allocation_address; | 1570 return allocation_address; |
| 1571 } | 1571 } |
| 1572 | 1572 |
| 1573 | 1573 |
| 1574 } } // namespace v8::internal | 1574 } } // namespace v8::internal |
| OLD | NEW |