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

Side by Side Diff: src/serialize.cc

Issue 302703004: Inlined optimized runtime functions: expose Runtime versions for direct testing, skip Hydrogen vers… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 7 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.cc ('k') | test/mjsunit/runtime-gen/arraybuffergetbytelength.js » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "v8.h" 5 #include "v8.h"
6 6
7 #include "accessors.h" 7 #include "accessors.h"
8 #include "api.h" 8 #include "api.h"
9 #include "bootstrapper.h" 9 #include "bootstrapper.h"
10 #include "deoptimizer.h" 10 #include "deoptimizer.h"
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 #undef DEF_ENTRY_C 143 #undef DEF_ENTRY_C
144 #undef DEF_ENTRY_A 144 #undef DEF_ENTRY_A
145 145
146 // Runtime functions 146 // Runtime functions
147 #define RUNTIME_ENTRY(name, nargs, ressize) \ 147 #define RUNTIME_ENTRY(name, nargs, ressize) \
148 { RUNTIME_FUNCTION, \ 148 { RUNTIME_FUNCTION, \
149 Runtime::k##name, \ 149 Runtime::k##name, \
150 "Runtime::" #name }, 150 "Runtime::" #name },
151 151
152 RUNTIME_FUNCTION_LIST(RUNTIME_ENTRY) 152 RUNTIME_FUNCTION_LIST(RUNTIME_ENTRY)
153 INLINE_OPTIMIZED_FUNCTION_LIST(RUNTIME_ENTRY)
153 #undef RUNTIME_ENTRY 154 #undef RUNTIME_ENTRY
154 155
155 #define RUNTIME_HIDDEN_ENTRY(name, nargs, ressize) \ 156 #define RUNTIME_HIDDEN_ENTRY(name, nargs, ressize) \
156 { RUNTIME_FUNCTION, \ 157 { RUNTIME_FUNCTION, \
157 Runtime::kHidden##name, \ 158 Runtime::kHidden##name, \
158 "Runtime::Hidden" #name }, 159 "Runtime::Hidden" #name },
159 160
160 RUNTIME_HIDDEN_FUNCTION_LIST(RUNTIME_HIDDEN_ENTRY) 161 RUNTIME_HIDDEN_FUNCTION_LIST(RUNTIME_HIDDEN_ENTRY)
161 #undef RUNTIME_HIDDEN_ENTRY 162 #undef RUNTIME_HIDDEN_ENTRY
162 163
(...skipping 1669 matching lines...) Expand 10 before | Expand all | Expand 10 after
1832 1833
1833 bool SnapshotByteSource::AtEOF() { 1834 bool SnapshotByteSource::AtEOF() {
1834 if (0u + length_ - position_ > 2 * sizeof(uint32_t)) return false; 1835 if (0u + length_ - position_ > 2 * sizeof(uint32_t)) return false;
1835 for (int x = position_; x < length_; x++) { 1836 for (int x = position_; x < length_; x++) {
1836 if (data_[x] != SerializerDeserializer::nop()) return false; 1837 if (data_[x] != SerializerDeserializer::nop()) return false;
1837 } 1838 }
1838 return true; 1839 return true;
1839 } 1840 }
1840 1841
1841 } } // namespace v8::internal 1842 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/runtime.cc ('k') | test/mjsunit/runtime-gen/arraybuffergetbytelength.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698