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

Side by Side Diff: src/assembler.h

Issue 1631008: Optimize the assembly code generated for Math.random() (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 8 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 | « no previous file | src/assembler.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 (c) 1994-2006 Sun Microsystems Inc. 1 // Copyright (c) 1994-2006 Sun Microsystems Inc.
2 // All Rights Reserved. 2 // All Rights Reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // - Redistributions of source code must retain the above copyright notice, 8 // - Redistributions of source code must retain the above copyright notice,
9 // this list of conditions and the following disclaimer. 9 // this list of conditions and the following disclaimer.
10 // 10 //
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 explicit ExternalReference(Top::AddressId id); 392 explicit ExternalReference(Top::AddressId id);
393 393
394 explicit ExternalReference(const SCTableReference& table_ref); 394 explicit ExternalReference(const SCTableReference& table_ref);
395 395
396 // One-of-a-kind references. These references are not part of a general 396 // One-of-a-kind references. These references are not part of a general
397 // pattern. This means that they have to be added to the 397 // pattern. This means that they have to be added to the
398 // ExternalReferenceTable in serialize.cc manually. 398 // ExternalReferenceTable in serialize.cc manually.
399 399
400 static ExternalReference perform_gc_function(); 400 static ExternalReference perform_gc_function();
401 static ExternalReference fill_heap_number_with_random_function(); 401 static ExternalReference fill_heap_number_with_random_function();
402 static ExternalReference random_uint32_function();
402 static ExternalReference transcendental_cache_array_address(); 403 static ExternalReference transcendental_cache_array_address();
403 404
404 // Static data in the keyed lookup cache. 405 // Static data in the keyed lookup cache.
405 static ExternalReference keyed_lookup_cache_keys(); 406 static ExternalReference keyed_lookup_cache_keys();
406 static ExternalReference keyed_lookup_cache_field_offsets(); 407 static ExternalReference keyed_lookup_cache_field_offsets();
407 408
408 // Static variable Factory::the_hole_value.location() 409 // Static variable Factory::the_hole_value.location()
409 static ExternalReference the_hole_value_location(); 410 static ExternalReference the_hole_value_location();
410 411
411 // Static variable Heap::roots_address() 412 // Static variable Heap::roots_address()
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
537 unsigned int num_bits_set; 538 unsigned int num_bits_set;
538 for (num_bits_set = 0; x; x >>= 1) { 539 for (num_bits_set = 0; x; x >>= 1) {
539 num_bits_set += x & 1; 540 num_bits_set += x & 1;
540 } 541 }
541 return num_bits_set; 542 return num_bits_set;
542 } 543 }
543 544
544 } } // namespace v8::internal 545 } } // namespace v8::internal
545 546
546 #endif // V8_ASSEMBLER_H_ 547 #endif // V8_ASSEMBLER_H_
OLDNEW
« no previous file with comments | « no previous file | src/assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698