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

Side by Side Diff: src/arm/codegen-arm.h

Issue 126113: Change the implementation of Math.random to use George... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 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/api.cc ('k') | src/arm/codegen-arm.cc » ('j') | src/v8.h » ('J')
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 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 void GenerateSetValueOf(ZoneList<Expression*>* args); 342 void GenerateSetValueOf(ZoneList<Expression*>* args);
343 343
344 // Fast support for charCodeAt(n). 344 // Fast support for charCodeAt(n).
345 void GenerateFastCharCodeAt(ZoneList<Expression*>* args); 345 void GenerateFastCharCodeAt(ZoneList<Expression*>* args);
346 346
347 // Fast support for object equality testing. 347 // Fast support for object equality testing.
348 void GenerateObjectEquals(ZoneList<Expression*>* args); 348 void GenerateObjectEquals(ZoneList<Expression*>* args);
349 349
350 void GenerateLog(ZoneList<Expression*>* args); 350 void GenerateLog(ZoneList<Expression*>* args);
351 351
352 // Fast support for Math.random().
353 void GenerateRandomPositiveSmi(ZoneList<Expression*>* args);
354
352 // Methods and constants for fast case switch statement support. 355 // Methods and constants for fast case switch statement support.
353 // 356 //
354 // Only allow fast-case switch if the range of labels is at most 357 // Only allow fast-case switch if the range of labels is at most
355 // this factor times the number of case labels. 358 // this factor times the number of case labels.
356 // Value is derived from comparing the size of code generated by the normal 359 // Value is derived from comparing the size of code generated by the normal
357 // switch code for Smi-labels to the size of a single pointer. If code 360 // switch code for Smi-labels to the size of a single pointer. If code
358 // quality increases this number should be decreased to match. 361 // quality increases this number should be decreased to match.
359 static const int kFastSwitchMaxOverheadFactor = 10; 362 static const int kFastSwitchMaxOverheadFactor = 10;
360 363
361 // Minimal number of switch cases required before we allow jump-table 364 // Minimal number of switch cases required before we allow jump-table
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 friend class JumpTarget; 453 friend class JumpTarget;
451 friend class Reference; 454 friend class Reference;
452 455
453 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); 456 DISALLOW_COPY_AND_ASSIGN(CodeGenerator);
454 }; 457 };
455 458
456 459
457 } } // namespace v8::internal 460 } } // namespace v8::internal
458 461
459 #endif // V8_ARM_CODEGEN_ARM_H_ 462 #endif // V8_ARM_CODEGEN_ARM_H_
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/arm/codegen-arm.cc » ('j') | src/v8.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698