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

Side by Side Diff: src/codegen.cc

Issue 17576005: Rename Literal::handle to Literal::value (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 6 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/ast.cc ('k') | src/full-codegen.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 // 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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 } 171 }
172 172
173 173
174 bool CodeGenerator::ShouldGenerateLog(Expression* type) { 174 bool CodeGenerator::ShouldGenerateLog(Expression* type) {
175 ASSERT(type != NULL); 175 ASSERT(type != NULL);
176 Isolate* isolate = Isolate::Current(); 176 Isolate* isolate = Isolate::Current();
177 if (!isolate->logger()->is_logging() && 177 if (!isolate->logger()->is_logging() &&
178 !isolate->cpu_profiler()->is_profiling()) { 178 !isolate->cpu_profiler()->is_profiling()) {
179 return false; 179 return false;
180 } 180 }
181 Handle<String> name = Handle<String>::cast(type->AsLiteral()->handle()); 181 Handle<String> name = Handle<String>::cast(type->AsLiteral()->value());
182 if (FLAG_log_regexp) { 182 if (FLAG_log_regexp) {
183 if (name->IsOneByteEqualTo(STATIC_ASCII_VECTOR("regexp"))) 183 if (name->IsOneByteEqualTo(STATIC_ASCII_VECTOR("regexp")))
184 return true; 184 return true;
185 } 185 }
186 return false; 186 return false;
187 } 187 }
188 188
189 189
190 bool CodeGenerator::RecordPositions(MacroAssembler* masm, 190 bool CodeGenerator::RecordPositions(MacroAssembler* masm,
191 int pos, 191 int pos,
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 ASSERT(result_size_ == 1 || result_size_ == 2); 224 ASSERT(result_size_ == 1 || result_size_ == 2);
225 #ifdef _WIN64 225 #ifdef _WIN64
226 return result | ((result_size_ == 1) ? 0 : 2); 226 return result | ((result_size_ == 1) ? 0 : 2);
227 #else 227 #else
228 return result; 228 return result;
229 #endif 229 #endif
230 } 230 }
231 231
232 232
233 } } // namespace v8::internal 233 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ast.cc ('k') | src/full-codegen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698