Commit dda96b61 authored by erik.corry@gmail.com's avatar erik.corry@gmail.com

Fix formatting around * and &.

Review URL: http://codereview.chromium.org/1000007

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@4169 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent c1597031
...@@ -415,7 +415,7 @@ class MacroAssembler: public Assembler { ...@@ -415,7 +415,7 @@ class MacroAssembler: public Assembler {
Register object2, Register object2,
Register scratch1, Register scratch1,
Register scratch2, Register scratch2,
Label *failure); Label* failure);
// Checks if both objects are sequential ASCII strings and jumps to label // Checks if both objects are sequential ASCII strings and jumps to label
// if either is not. // if either is not.
......
...@@ -65,7 +65,7 @@ class StatsTable : public AllStatic { ...@@ -65,7 +65,7 @@ class StatsTable : public AllStatic {
// may receive a different location to store it's counter. // may receive a different location to store it's counter.
// The return value must not be cached and re-used across // The return value must not be cached and re-used across
// threads, although a single thread is free to cache it. // threads, although a single thread is free to cache it.
static int *FindLocation(const char* name) { static int* FindLocation(const char* name) {
if (!lookup_function_) return NULL; if (!lookup_function_) return NULL;
return lookup_function_(name); return lookup_function_(name);
} }
......
...@@ -1165,26 +1165,26 @@ class Heap : public AllStatic { ...@@ -1165,26 +1165,26 @@ class Heap : public AllStatic {
class HeapStats { class HeapStats {
public: public:
int *start_marker; int* start_marker;
int *new_space_size; int* new_space_size;
int *new_space_capacity; int* new_space_capacity;
int *old_pointer_space_size; int* old_pointer_space_size;
int *old_pointer_space_capacity; int* old_pointer_space_capacity;
int *old_data_space_size; int* old_data_space_size;
int *old_data_space_capacity; int* old_data_space_capacity;
int *code_space_size; int* code_space_size;
int *code_space_capacity; int* code_space_capacity;
int *map_space_size; int* map_space_size;
int *map_space_capacity; int* map_space_capacity;
int *cell_space_size; int* cell_space_size;
int *cell_space_capacity; int* cell_space_capacity;
int *lo_space_size; int* lo_space_size;
int *global_handle_count; int* global_handle_count;
int *weak_global_handle_count; int* weak_global_handle_count;
int *pending_global_handle_count; int* pending_global_handle_count;
int *near_death_global_handle_count; int* near_death_global_handle_count;
int *destroyed_global_handle_count; int* destroyed_global_handle_count;
int *end_marker; int* end_marker;
}; };
......
...@@ -500,7 +500,7 @@ class CodeGenerator: public AstVisitor { ...@@ -500,7 +500,7 @@ class CodeGenerator: public AstVisitor {
bool FoldConstantSmis(Token::Value op, int left, int right); bool FoldConstantSmis(Token::Value op, int left, int right);
// Emit code to perform a binary operation on a constant // Emit code to perform a binary operation on a constant
// smi and a likely smi. Consumes the Result *operand. // smi and a likely smi. Consumes the Result operand.
Result ConstantSmiBinaryOperation(Token::Value op, Result ConstantSmiBinaryOperation(Token::Value op,
Result* operand, Result* operand,
Handle<Object> constant_operand, Handle<Object> constant_operand,
...@@ -511,7 +511,7 @@ class CodeGenerator: public AstVisitor { ...@@ -511,7 +511,7 @@ class CodeGenerator: public AstVisitor {
// Emit code to perform a binary operation on two likely smis. // Emit code to perform a binary operation on two likely smis.
// The code to handle smi arguments is produced inline. // The code to handle smi arguments is produced inline.
// Consumes the Results *left and *right. // Consumes the Results left and right.
Result LikelySmiBinaryOperation(Token::Value op, Result LikelySmiBinaryOperation(Token::Value op,
Result* left, Result* left,
Result* right, Result* right,
......
...@@ -1553,7 +1553,7 @@ void MacroAssembler::Abort(const char* msg) { ...@@ -1553,7 +1553,7 @@ void MacroAssembler::Abort(const char* msg) {
void MacroAssembler::JumpIfInstanceTypeIsNotSequentialAscii( void MacroAssembler::JumpIfInstanceTypeIsNotSequentialAscii(
Register instance_type, Register instance_type,
Register scratch, Register scratch,
Label *failure) { Label* failure) {
if (!scratch.is(instance_type)) { if (!scratch.is(instance_type)) {
mov(scratch, instance_type); mov(scratch, instance_type);
} }
......
...@@ -476,7 +476,7 @@ class MacroAssembler: public Assembler { ...@@ -476,7 +476,7 @@ class MacroAssembler: public Assembler {
// for both instance type and scratch. // for both instance type and scratch.
void JumpIfInstanceTypeIsNotSequentialAscii(Register instance_type, void JumpIfInstanceTypeIsNotSequentialAscii(Register instance_type,
Register scratch, Register scratch,
Label *on_not_flat_ascii_string); Label* on_not_flat_ascii_string);
// Checks if both objects are sequential ASCII strings, and jumps to label // Checks if both objects are sequential ASCII strings, and jumps to label
// if either is not. // if either is not.
...@@ -484,7 +484,7 @@ class MacroAssembler: public Assembler { ...@@ -484,7 +484,7 @@ class MacroAssembler: public Assembler {
Register object2, Register object2,
Register scratch1, Register scratch1,
Register scratch2, Register scratch2,
Label *on_not_flat_ascii_strings); Label* on_not_flat_ascii_strings);
private: private:
bool generating_stub_; bool generating_stub_;
......
...@@ -5635,7 +5635,7 @@ static const char kMonthInYear[] = { ...@@ -5635,7 +5635,7 @@ static const char kMonthInYear[] = {
// This function works for dates from 1970 to 2099. // This function works for dates from 1970 to 2099.
static inline void DateYMDFromTimeAfter1970(int date, static inline void DateYMDFromTimeAfter1970(int date,
int &year, int &month, int &day) { int& year, int& month, int& day) {
#ifdef DEBUG #ifdef DEBUG
int save_date = date; // Need this for ASSERT in the end. int save_date = date; // Need this for ASSERT in the end.
#endif #endif
...@@ -5651,7 +5651,7 @@ static inline void DateYMDFromTimeAfter1970(int date, ...@@ -5651,7 +5651,7 @@ static inline void DateYMDFromTimeAfter1970(int date,
static inline void DateYMDFromTimeSlow(int date, static inline void DateYMDFromTimeSlow(int date,
int &year, int &month, int &day) { int& year, int& month, int& day) {
#ifdef DEBUG #ifdef DEBUG
int save_date = date; // Need this for ASSERT in the end. int save_date = date; // Need this for ASSERT in the end.
#endif #endif
...@@ -5699,7 +5699,7 @@ static inline void DateYMDFromTimeSlow(int date, ...@@ -5699,7 +5699,7 @@ static inline void DateYMDFromTimeSlow(int date,
static inline void DateYMDFromTime(int date, static inline void DateYMDFromTime(int date,
int &year, int &month, int &day) { int& year, int& month, int& day) {
if (date >= 0 && date < 32 * kDaysIn4Years) { if (date >= 0 && date < 32 * kDaysIn4Years) {
DateYMDFromTimeAfter1970(date, year, month, day); DateYMDFromTimeAfter1970(date, year, month, day);
} else { } else {
......
...@@ -477,7 +477,7 @@ int ExternalReferenceEncoder::IndexOf(Address key) const { ...@@ -477,7 +477,7 @@ int ExternalReferenceEncoder::IndexOf(Address key) const {
void ExternalReferenceEncoder::Put(Address key, int index) { void ExternalReferenceEncoder::Put(Address key, int index) {
HashMap::Entry* entry = encodings_.Lookup(key, Hash(key), true); HashMap::Entry* entry = encodings_.Lookup(key, Hash(key), true);
entry->value = reinterpret_cast<void *>(index); entry->value = reinterpret_cast<void*>(index);
} }
...@@ -977,7 +977,7 @@ int SerializerDeserializer::partial_snapshot_cache_length_ = 0; ...@@ -977,7 +977,7 @@ int SerializerDeserializer::partial_snapshot_cache_length_ = 0;
// the startup snapshot that correspond to the elements of this cache array. On // the startup snapshot that correspond to the elements of this cache array. On
// deserialization we therefore need to visit the cache array. This fills it up // deserialization we therefore need to visit the cache array. This fills it up
// with pointers to deserialized objects. // with pointers to deserialized objects.
void SerializerDeserializer::Iterate(ObjectVisitor *visitor) { void SerializerDeserializer::Iterate(ObjectVisitor* visitor) {
visitor->VisitPointers( visitor->VisitPointers(
&partial_snapshot_cache_[0], &partial_snapshot_cache_[0],
&partial_snapshot_cache_[partial_snapshot_cache_length_]); &partial_snapshot_cache_[partial_snapshot_cache_length_]);
......
...@@ -43,7 +43,7 @@ bool V8::has_been_setup_ = false; ...@@ -43,7 +43,7 @@ bool V8::has_been_setup_ = false;
bool V8::has_been_disposed_ = false; bool V8::has_been_disposed_ = false;
bool V8::has_fatal_error_ = false; bool V8::has_fatal_error_ = false;
bool V8::Initialize(Deserializer *des) { bool V8::Initialize(Deserializer* des) {
bool create_heap_objects = des == NULL; bool create_heap_objects = des == NULL;
if (has_been_disposed_ || has_fatal_error_) return false; if (has_been_disposed_ || has_fatal_error_) return false;
if (IsRunning()) return true; if (IsRunning()) return true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment