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

Side by Side Diff: src/flags.cc

Issue 113333: Fix asterisk spacing. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 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/d8.cc ('k') | src/ia32/assembler-ia32-inl.h » ('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 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 double* float_variable() const { 79 double* float_variable() const {
80 ASSERT(type_ == TYPE_FLOAT); 80 ASSERT(type_ == TYPE_FLOAT);
81 return reinterpret_cast<double*>(valptr_); 81 return reinterpret_cast<double*>(valptr_);
82 } 82 }
83 83
84 const char* string_value() const { 84 const char* string_value() const {
85 ASSERT(type_ == TYPE_STRING); 85 ASSERT(type_ == TYPE_STRING);
86 return *reinterpret_cast<const char**>(valptr_); 86 return *reinterpret_cast<const char**>(valptr_);
87 } 87 }
88 88
89 void set_string_value(const char *value, bool owns_ptr) { 89 void set_string_value(const char* value, bool owns_ptr) {
90 ASSERT(type_ == TYPE_STRING); 90 ASSERT(type_ == TYPE_STRING);
91 const char **ptr = reinterpret_cast<const char **>(valptr_); 91 const char** ptr = reinterpret_cast<const char**>(valptr_);
92 if (owns_ptr_ && *ptr != NULL) DeleteArray(*ptr); 92 if (owns_ptr_ && *ptr != NULL) DeleteArray(*ptr);
93 *ptr = value; 93 *ptr = value;
94 owns_ptr_ = owns_ptr; 94 owns_ptr_ = owns_ptr;
95 } 95 }
96 96
97 JSArguments* args_variable() const { 97 JSArguments* args_variable() const {
98 ASSERT(type_ == TYPE_ARGS); 98 ASSERT(type_ == TYPE_ARGS);
99 return reinterpret_cast<JSArguments*>(valptr_); 99 return reinterpret_cast<JSArguments*>(valptr_);
100 } 100 }
101 101
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
545 const char** JSArguments::argv() { return argv_; } 545 const char** JSArguments::argv() { return argv_; }
546 const char*& JSArguments::operator[](int idx) { return argv_[idx]; } 546 const char*& JSArguments::operator[](int idx) { return argv_[idx]; }
547 JSArguments& JSArguments::operator=(JSArguments args) { 547 JSArguments& JSArguments::operator=(JSArguments args) {
548 argc_ = args.argc_; 548 argc_ = args.argc_;
549 argv_ = args.argv_; 549 argv_ = args.argv_;
550 return *this; 550 return *this;
551 } 551 }
552 552
553 553
554 } } // namespace v8::internal 554 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/d8.cc ('k') | src/ia32/assembler-ia32-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698