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

Side by Side Diff: src/utils.h

Issue 894001: Use this->foo() in place of foo() in some places to appease pedantic compiler... (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: Created 10 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/objects.h ('k') | 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 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 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 EmbeddedVector(const EmbeddedVector& rhs) 389 EmbeddedVector(const EmbeddedVector& rhs)
390 : Vector<T>(rhs) { 390 : Vector<T>(rhs) {
391 memcpy(buffer_, rhs.buffer_, sizeof(T) * kSize); 391 memcpy(buffer_, rhs.buffer_, sizeof(T) * kSize);
392 set_start(buffer_); 392 set_start(buffer_);
393 } 393 }
394 394
395 EmbeddedVector& operator=(const EmbeddedVector& rhs) { 395 EmbeddedVector& operator=(const EmbeddedVector& rhs) {
396 if (this == &rhs) return *this; 396 if (this == &rhs) return *this;
397 Vector<T>::operator=(rhs); 397 Vector<T>::operator=(rhs);
398 memcpy(buffer_, rhs.buffer_, sizeof(T) * kSize); 398 memcpy(buffer_, rhs.buffer_, sizeof(T) * kSize);
399 set_start(buffer_); 399 this->set_start(buffer_);
400 return *this; 400 return *this;
401 } 401 }
402 402
403 private: 403 private:
404 T buffer_[kSize]; 404 T buffer_[kSize];
405 }; 405 };
406 406
407 407
408 template <typename T> 408 template <typename T>
409 class ScopedVector : public Vector<T> { 409 class ScopedVector : public Vector<T> {
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
595 #undef STOS 595 #undef STOS
596 } 596 }
597 597
598 598
599 // Calculate 10^exponent. 599 // Calculate 10^exponent.
600 int TenToThe(int exponent); 600 int TenToThe(int exponent);
601 601
602 } } // namespace v8::internal 602 } } // namespace v8::internal
603 603
604 #endif // V8_UTILS_H_ 604 #endif // V8_UTILS_H_
OLDNEW
« no previous file with comments | « src/objects.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698