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

Side by Side Diff: src/objects.h

Issue 458743005: Fix presubmit error. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 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 | « no previous file | no next file » | 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 #ifndef V8_OBJECTS_H_ 5 #ifndef V8_OBJECTS_H_
6 #define V8_OBJECTS_H_ 6 #define V8_OBJECTS_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/assert-scope.h" 9 #include "src/assert-scope.h"
10 #include "src/builtins.h" 10 #include "src/builtins.h"
(...skipping 7523 matching lines...) Expand 10 before | Expand all | Expand 10 after
7534 #error Unknown byte ordering 7534 #error Unknown byte ordering
7535 #endif 7535 #endif
7536 7536
7537 private: 7537 private:
7538 DISALLOW_IMPLICIT_CONSTRUCTORS(SharedFunctionInfo); 7538 DISALLOW_IMPLICIT_CONSTRUCTORS(SharedFunctionInfo);
7539 }; 7539 };
7540 7540
7541 7541
7542 // Printing support. 7542 // Printing support.
7543 struct SourceCodeOf { 7543 struct SourceCodeOf {
7544 SourceCodeOf(SharedFunctionInfo* v, int max = -1) 7544 explicit SourceCodeOf(SharedFunctionInfo* v, int max = -1)
7545 : value(v), max_length(max) {} 7545 : value(v), max_length(max) {}
7546 const SharedFunctionInfo* value; 7546 const SharedFunctionInfo* value;
7547 int max_length; 7547 int max_length;
7548 }; 7548 };
7549 7549
7550 7550
7551 OStream& operator<<(OStream& os, const SourceCodeOf& v); 7551 OStream& operator<<(OStream& os, const SourceCodeOf& v);
7552 7552
7553 7553
7554 class JSGeneratorObject: public JSObject { 7554 class JSGeneratorObject: public JSObject {
(...skipping 2183 matching lines...) Expand 10 before | Expand all | Expand 10 after
9738 DISALLOW_COPY_AND_ASSIGN(ConsStringNullOp); 9738 DISALLOW_COPY_AND_ASSIGN(ConsStringNullOp);
9739 }; 9739 };
9740 9740
9741 9741
9742 // This maintains an off-stack representation of the stack frames required 9742 // This maintains an off-stack representation of the stack frames required
9743 // to traverse a ConsString, allowing an entirely iterative and restartable 9743 // to traverse a ConsString, allowing an entirely iterative and restartable
9744 // traversal of the entire string 9744 // traversal of the entire string
9745 class ConsStringIteratorOp { 9745 class ConsStringIteratorOp {
9746 public: 9746 public:
9747 inline ConsStringIteratorOp() {} 9747 inline ConsStringIteratorOp() {}
9748 inline ConsStringIteratorOp(ConsString* cons_string, int offset = 0) { 9748 inline explicit ConsStringIteratorOp(ConsString* cons_string,
9749 int offset = 0) {
9749 Reset(cons_string, offset); 9750 Reset(cons_string, offset);
9750 } 9751 }
9751 inline void Reset(ConsString* cons_string, int offset = 0) { 9752 inline void Reset(ConsString* cons_string, int offset = 0) {
9752 depth_ = 0; 9753 depth_ = 0;
9753 // Next will always return NULL. 9754 // Next will always return NULL.
9754 if (cons_string == NULL) return; 9755 if (cons_string == NULL) return;
9755 Initialize(cons_string, offset); 9756 Initialize(cons_string, offset);
9756 } 9757 }
9757 // Returns NULL when complete. 9758 // Returns NULL when complete.
9758 inline String* Next(int* offset_out) { 9759 inline String* Next(int* offset_out) {
(...skipping 1505 matching lines...) Expand 10 before | Expand all | Expand 10 after
11264 } else { 11265 } else {
11265 value &= ~(1 << bit_position); 11266 value &= ~(1 << bit_position);
11266 } 11267 }
11267 return value; 11268 return value;
11268 } 11269 }
11269 }; 11270 };
11270 11271
11271 } } // namespace v8::internal 11272 } } // namespace v8::internal
11272 11273
11273 #endif // V8_OBJECTS_H_ 11274 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698