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

Side by Side Diff: src/serialize.cc

Issue 6717018: Introduce accessors on builtins instance (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix tests and lint. Created 9 years, 9 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/runtime-profiler.cc ('k') | src/stub-cache.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 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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 #define DEF_ENTRY_C(name, ignored) \ 189 #define DEF_ENTRY_C(name, ignored) \
190 { C_BUILTIN, \ 190 { C_BUILTIN, \
191 Builtins::c_##name, \ 191 Builtins::c_##name, \
192 "Builtins::" #name }, 192 "Builtins::" #name },
193 193
194 BUILTIN_LIST_C(DEF_ENTRY_C) 194 BUILTIN_LIST_C(DEF_ENTRY_C)
195 #undef DEF_ENTRY_C 195 #undef DEF_ENTRY_C
196 196
197 #define DEF_ENTRY_C(name, ignored) \ 197 #define DEF_ENTRY_C(name, ignored) \
198 { BUILTIN, \ 198 { BUILTIN, \
199 Builtins::name, \ 199 Builtins::k##name, \
200 "Builtins::" #name }, 200 "Builtins::" #name },
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
(...skipping 1355 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « src/runtime-profiler.cc ('k') | src/stub-cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698