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

Side by Side Diff: src/objects-inl.h

Issue 363323003: More OStreamsUse OStreams more often. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased and polished. Created 6 years, 5 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/objects-debug.cc ('k') | src/objects-printer.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 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 // Review notes: 5 // Review notes:
6 // 6 //
7 // - The use of macros in these inline functions may seem superfluous 7 // - The use of macros in these inline functions may seem superfluous
8 // but it is absolutely needed to make sure gcc generates optimal 8 // but it is absolutely needed to make sure gcc generates optimal
9 // code. gcc is not happy when attempting to inline too deep. 9 // code. gcc is not happy when attempting to inline too deep.
10 // 10 //
(...skipping 5537 matching lines...) Expand 10 before | Expand all | Expand 10 after
5548 return true; 5548 return true;
5549 } 5549 }
5550 5550
5551 5551
5552 void SharedFunctionInfo::DontAdaptArguments() { 5552 void SharedFunctionInfo::DontAdaptArguments() {
5553 ASSERT(code()->kind() == Code::BUILTIN); 5553 ASSERT(code()->kind() == Code::BUILTIN);
5554 set_formal_parameter_count(kDontAdaptArgumentsSentinel); 5554 set_formal_parameter_count(kDontAdaptArgumentsSentinel);
5555 } 5555 }
5556 5556
5557 5557
5558 int SharedFunctionInfo::start_position() { 5558 int SharedFunctionInfo::start_position() const {
5559 return start_position_and_type() >> kStartPositionShift; 5559 return start_position_and_type() >> kStartPositionShift;
5560 } 5560 }
5561 5561
5562 5562
5563 void SharedFunctionInfo::set_start_position(int start_position) { 5563 void SharedFunctionInfo::set_start_position(int start_position) {
5564 set_start_position_and_type((start_position << kStartPositionShift) 5564 set_start_position_and_type((start_position << kStartPositionShift)
5565 | (start_position_and_type() & ~kStartPositionMask)); 5565 | (start_position_and_type() & ~kStartPositionMask));
5566 } 5566 }
5567 5567
5568 5568
(...skipping 1556 matching lines...) Expand 10 before | Expand all | Expand 10 after
7125 #undef READ_SHORT_FIELD 7125 #undef READ_SHORT_FIELD
7126 #undef WRITE_SHORT_FIELD 7126 #undef WRITE_SHORT_FIELD
7127 #undef READ_BYTE_FIELD 7127 #undef READ_BYTE_FIELD
7128 #undef WRITE_BYTE_FIELD 7128 #undef WRITE_BYTE_FIELD
7129 #undef NOBARRIER_READ_BYTE_FIELD 7129 #undef NOBARRIER_READ_BYTE_FIELD
7130 #undef NOBARRIER_WRITE_BYTE_FIELD 7130 #undef NOBARRIER_WRITE_BYTE_FIELD
7131 7131
7132 } } // namespace v8::internal 7132 } } // namespace v8::internal
7133 7133
7134 #endif // V8_OBJECTS_INL_H_ 7134 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects-debug.cc ('k') | src/objects-printer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698