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

Side by Side Diff: src/assembler.h

Issue 660095: Merge revision 3813 to 3930 from bleeding_edge to partial snapshots branch. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/partial_snapshots/
Patch Set: '' Created 10 years, 10 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/array.js ('k') | 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 // location of a stack frame as close as possible. The "statement position" is 112 // location of a stack frame as close as possible. The "statement position" is
113 // collected at the beginning at each statement, and is used to indicate 113 // collected at the beginning at each statement, and is used to indicate
114 // possible break locations. kNoPosition is used to indicate an 114 // possible break locations. kNoPosition is used to indicate an
115 // invalid/uninitialized position value. 115 // invalid/uninitialized position value.
116 static const int kNoPosition = -1; 116 static const int kNoPosition = -1;
117 117
118 enum Mode { 118 enum Mode {
119 // Please note the order is important (see IsCodeTarget, IsGCRelocMode). 119 // Please note the order is important (see IsCodeTarget, IsGCRelocMode).
120 CONSTRUCT_CALL, // code target that is a call to a JavaScript constructor. 120 CONSTRUCT_CALL, // code target that is a call to a JavaScript constructor.
121 CODE_TARGET_CONTEXT, // code target used for contextual loads. 121 CODE_TARGET_CONTEXT, // code target used for contextual loads.
122 DEBUG_BREAK,
122 CODE_TARGET, // code target which is not any of the above. 123 CODE_TARGET, // code target which is not any of the above.
123 EMBEDDED_OBJECT, 124 EMBEDDED_OBJECT,
124 EMBEDDED_STRING, 125 EMBEDDED_STRING,
125 126
126 // Everything after runtime_entry (inclusive) is not GC'ed. 127 // Everything after runtime_entry (inclusive) is not GC'ed.
127 RUNTIME_ENTRY, 128 RUNTIME_ENTRY,
128 JS_RETURN, // Marks start of the ExitJSFrame code. 129 JS_RETURN, // Marks start of the ExitJSFrame code.
129 COMMENT, 130 COMMENT,
130 POSITION, // See comment for kNoPosition above. 131 POSITION, // See comment for kNoPosition above.
131 STATEMENT_POSITION, // See comment for kNoPosition above. 132 STATEMENT_POSITION, // See comment for kNoPosition above.
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 explicit ExternalReference(Top::AddressId id); 393 explicit ExternalReference(Top::AddressId id);
393 394
394 explicit ExternalReference(const SCTableReference& table_ref); 395 explicit ExternalReference(const SCTableReference& table_ref);
395 396
396 // One-of-a-kind references. These references are not part of a general 397 // 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 398 // pattern. This means that they have to be added to the
398 // ExternalReferenceTable in serialize.cc manually. 399 // ExternalReferenceTable in serialize.cc manually.
399 400
400 static ExternalReference perform_gc_function(); 401 static ExternalReference perform_gc_function();
401 static ExternalReference random_positive_smi_function(); 402 static ExternalReference random_positive_smi_function();
403 static ExternalReference transcendental_cache_array_address();
402 404
403 // Static data in the keyed lookup cache. 405 // Static data in the keyed lookup cache.
404 static ExternalReference keyed_lookup_cache_keys(); 406 static ExternalReference keyed_lookup_cache_keys();
405 static ExternalReference keyed_lookup_cache_field_offsets(); 407 static ExternalReference keyed_lookup_cache_field_offsets();
406 408
407 // Static variable Factory::the_hole_value.location() 409 // Static variable Factory::the_hole_value.location()
408 static ExternalReference the_hole_value_location(); 410 static ExternalReference the_hole_value_location();
409 411
410 // Static variable Heap::roots_address() 412 // Static variable Heap::roots_address()
411 static ExternalReference roots_address(); 413 static ExternalReference roots_address();
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
532 unsigned int num_bits_set; 534 unsigned int num_bits_set;
533 for (num_bits_set = 0; x; x >>= 1) { 535 for (num_bits_set = 0; x; x >>= 1) {
534 num_bits_set += x & 1; 536 num_bits_set += x & 1;
535 } 537 }
536 return num_bits_set; 538 return num_bits_set;
537 } 539 }
538 540
539 } } // namespace v8::internal 541 } } // namespace v8::internal
540 542
541 #endif // V8_ASSEMBLER_H_ 543 #endif // V8_ASSEMBLER_H_
OLDNEW
« no previous file with comments | « src/array.js ('k') | src/assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698