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

Side by Side Diff: src/assembler.h

Issue 394007: * Remove old snapshot implementation (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 1 month 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
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 453 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 } 464 }
465 465
466 private: 466 private:
467 explicit ExternalReference(void* address) 467 explicit ExternalReference(void* address)
468 : address_(address) {} 468 : address_(address) {}
469 469
470 static ExternalReferenceRedirector* redirector_; 470 static ExternalReferenceRedirector* redirector_;
471 471
472 static void* Redirect(void* address, bool fp_return = false) { 472 static void* Redirect(void* address, bool fp_return = false) {
473 if (redirector_ == NULL) return address; 473 if (redirector_ == NULL) return address;
474 return (*redirector_)(address, fp_return); 474 void* answer = (*redirector_)(address, fp_return);
475 return answer;
475 } 476 }
476 477
477 static void* Redirect(Address address_arg, bool fp_return = false) { 478 static void* Redirect(Address address_arg, bool fp_return = false) {
478 void* address = reinterpret_cast<void*>(address_arg); 479 void* address = reinterpret_cast<void*>(address_arg);
479 return redirector_ == NULL ? address : (*redirector_)(address, fp_return); 480 void* answer = (redirector_ == NULL) ? address : (*redirector_)(address, fp_ return);
481 return answer;
480 } 482 }
481 483
482 void* address_; 484 void* address_;
483 }; 485 };
484 486
485 487
486 // ----------------------------------------------------------------------------- 488 // -----------------------------------------------------------------------------
487 // Utility functions 489 // Utility functions
488 490
489 static inline bool is_intn(int x, int n) { 491 static inline bool is_intn(int x, int n) {
(...skipping 13 matching lines...) Expand all
503 static inline bool is_uint5(int x) { return is_uintn(x, 5); } 505 static inline bool is_uint5(int x) { return is_uintn(x, 5); }
504 static inline bool is_uint6(int x) { return is_uintn(x, 6); } 506 static inline bool is_uint6(int x) { return is_uintn(x, 6); }
505 static inline bool is_uint8(int x) { return is_uintn(x, 8); } 507 static inline bool is_uint8(int x) { return is_uintn(x, 8); }
506 static inline bool is_uint12(int x) { return is_uintn(x, 12); } 508 static inline bool is_uint12(int x) { return is_uintn(x, 12); }
507 static inline bool is_uint16(int x) { return is_uintn(x, 16); } 509 static inline bool is_uint16(int x) { return is_uintn(x, 16); }
508 static inline bool is_uint24(int x) { return is_uintn(x, 24); } 510 static inline bool is_uint24(int x) { return is_uintn(x, 24); }
509 511
510 } } // namespace v8::internal 512 } } // namespace v8::internal
511 513
512 #endif // V8_ASSEMBLER_H_ 514 #endif // V8_ASSEMBLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698