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

Side by Side Diff: src/assembler.h

Issue 18096: Experimental: merge from bleeding_edge. Merge up to and including... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/toiger/
Patch Set: Created 11 years, 11 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/apinatives.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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 176
177 // Accessors 177 // Accessors
178 byte* pc() const { return pc_; } 178 byte* pc() const { return pc_; }
179 void set_pc(byte* pc) { pc_ = pc; } 179 void set_pc(byte* pc) { pc_ = pc; }
180 Mode rmode() const { return rmode_; } 180 Mode rmode() const { return rmode_; }
181 intptr_t data() const { return data_; } 181 intptr_t data() const { return data_; }
182 182
183 // Apply a relocation by delta bytes 183 // Apply a relocation by delta bytes
184 INLINE(void apply(int delta)); 184 INLINE(void apply(int delta));
185 185
186 // Read/modify the code target in the branch/call instruction this relocation 186 // Read/modify the code target in the branch/call instruction
187 // applies to; can only be called if IsCodeTarget(rmode_) 187 // this relocation applies to;
188 // can only be called if IsCodeTarget(rmode_) || rmode_ == RUNTIME_ENTRY
188 INLINE(Address target_address()); 189 INLINE(Address target_address());
189 INLINE(void set_target_address(Address target)); 190 INLINE(void set_target_address(Address target));
190 INLINE(Object* target_object()); 191 INLINE(Object* target_object());
191 INLINE(Object** target_object_address()); 192 INLINE(Object** target_object_address());
192 INLINE(void set_target_object(Object* target)); 193 INLINE(void set_target_object(Object* target));
193 194
195 // Read the address of the word containing the target_address. Can only
196 // be called if IsCodeTarget(rmode_) || rmode_ == RUNTIME_ENTRY.
197 INLINE(Address target_address_address());
198
194 // Read/modify the reference in the instruction this relocation 199 // Read/modify the reference in the instruction this relocation
195 // applies to; can only be called if rmode_ is external_reference 200 // applies to; can only be called if rmode_ is external_reference
196 INLINE(Address* target_reference_address()); 201 INLINE(Address* target_reference_address());
197 202
198 // Read/modify the address of a call instruction. This is used to relocate 203 // Read/modify the address of a call instruction. This is used to relocate
199 // the break points where straight-line code is patched with a call 204 // the break points where straight-line code is patched with a call
200 // instruction. 205 // instruction.
201 INLINE(Address call_address()); 206 INLINE(Address call_address());
202 INLINE(void set_call_address(Address target)); 207 INLINE(void set_call_address(Address target));
203 INLINE(Object* call_object()); 208 INLINE(Object* call_object());
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 // ExternalReferenceTable in serialize.cc manually. 393 // ExternalReferenceTable in serialize.cc manually.
389 394
390 static ExternalReference builtin_passed_function(); 395 static ExternalReference builtin_passed_function();
391 396
392 // Static variable Factory::the_hole_value.location() 397 // Static variable Factory::the_hole_value.location()
393 static ExternalReference the_hole_value_location(); 398 static ExternalReference the_hole_value_location();
394 399
395 // Static variable StackGuard::address_of_limit() 400 // Static variable StackGuard::address_of_limit()
396 static ExternalReference address_of_stack_guard_limit(); 401 static ExternalReference address_of_stack_guard_limit();
397 402
403 // Static variable RegExpStack::limit_address()
404 static ExternalReference address_of_regexp_stack_limit();
405
398 // Function Debug::Break() 406 // Function Debug::Break()
399 static ExternalReference debug_break(); 407 static ExternalReference debug_break();
400 408
401 // Static variable Heap::NewSpaceStart() 409 // Static variable Heap::NewSpaceStart()
402 static ExternalReference new_space_start(); 410 static ExternalReference new_space_start();
403 static ExternalReference heap_always_allocate_scope_depth(); 411 static ExternalReference heap_always_allocate_scope_depth();
404 412
405 // Used for fast allocation in generated code. 413 // Used for fast allocation in generated code.
406 static ExternalReference new_space_allocation_top_address(); 414 static ExternalReference new_space_allocation_top_address();
407 static ExternalReference new_space_allocation_limit_address(); 415 static ExternalReference new_space_allocation_limit_address();
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
439 static inline bool is_uint4(int x) { return is_uintn(x, 4); } 447 static inline bool is_uint4(int x) { return is_uintn(x, 4); }
440 static inline bool is_uint5(int x) { return is_uintn(x, 5); } 448 static inline bool is_uint5(int x) { return is_uintn(x, 5); }
441 static inline bool is_uint8(int x) { return is_uintn(x, 8); } 449 static inline bool is_uint8(int x) { return is_uintn(x, 8); }
442 static inline bool is_uint12(int x) { return is_uintn(x, 12); } 450 static inline bool is_uint12(int x) { return is_uintn(x, 12); }
443 static inline bool is_uint16(int x) { return is_uintn(x, 16); } 451 static inline bool is_uint16(int x) { return is_uintn(x, 16); }
444 static inline bool is_uint24(int x) { return is_uintn(x, 24); } 452 static inline bool is_uint24(int x) { return is_uintn(x, 24); }
445 453
446 } } // namespace v8::internal 454 } } // namespace v8::internal
447 455
448 #endif // V8_ASSEMBLER_H_ 456 #endif // V8_ASSEMBLER_H_
OLDNEW
« no previous file with comments | « src/apinatives.js ('k') | src/assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698