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

Side by Side Diff: src/ia32/assembler-ia32.h

Issue 15691017: Make assertion scopes thread safe. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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
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 393 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 } 404 }
405 405
406 static Operand StaticArray(Register index, 406 static Operand StaticArray(Register index,
407 ScaleFactor scale, 407 ScaleFactor scale,
408 const ExternalReference& arr) { 408 const ExternalReference& arr) {
409 return Operand(index, scale, reinterpret_cast<int32_t>(arr.address()), 409 return Operand(index, scale, reinterpret_cast<int32_t>(arr.address()),
410 RelocInfo::EXTERNAL_REFERENCE); 410 RelocInfo::EXTERNAL_REFERENCE);
411 } 411 }
412 412
413 static Operand Cell(Handle<JSGlobalPropertyCell> cell) { 413 static Operand Cell(Handle<JSGlobalPropertyCell> cell) {
414 ALLOW_HANDLE_DEREF(Isolate::Current(), "embedding raw address"); 414 AllowDeferredHandleDereference embedding_raw_address;
415 return Operand(reinterpret_cast<int32_t>(cell.location()), 415 return Operand(reinterpret_cast<int32_t>(cell.location()),
416 RelocInfo::GLOBAL_PROPERTY_CELL); 416 RelocInfo::GLOBAL_PROPERTY_CELL);
417 } 417 }
418 418
419 // Returns true if this Operand is a wrapper for the specified register. 419 // Returns true if this Operand is a wrapper for the specified register.
420 bool is_reg(Register reg) const; 420 bool is_reg(Register reg) const;
421 421
422 // Returns true if this Operand is a wrapper for one register. 422 // Returns true if this Operand is a wrapper for one register.
423 bool is_reg_only() const; 423 bool is_reg_only() const;
424 424
(...skipping 794 matching lines...) Expand 10 before | Expand all | Expand 10 after
1219 private: 1219 private:
1220 Assembler* assembler_; 1220 Assembler* assembler_;
1221 #ifdef DEBUG 1221 #ifdef DEBUG
1222 int space_before_; 1222 int space_before_;
1223 #endif 1223 #endif
1224 }; 1224 };
1225 1225
1226 } } // namespace v8::internal 1226 } } // namespace v8::internal
1227 1227
1228 #endif // V8_IA32_ASSEMBLER_IA32_H_ 1228 #endif // V8_IA32_ASSEMBLER_IA32_H_
OLDNEW
« src/api.cc ('K') | « src/hydrogen-instructions.h ('k') | src/ia32/assembler-ia32-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698