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

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

Issue 1759873002: Assembler changes for enabling GrowHeap in Wasm (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Adding x64 test Created 4 years, 9 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
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 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 // ----------------------------------------------------------------------------- 264 // -----------------------------------------------------------------------------
265 // Machine instruction Immediates 265 // Machine instruction Immediates
266 266
267 class Immediate BASE_EMBEDDED { 267 class Immediate BASE_EMBEDDED {
268 public: 268 public:
269 inline explicit Immediate(int x); 269 inline explicit Immediate(int x);
270 inline explicit Immediate(const ExternalReference& ext); 270 inline explicit Immediate(const ExternalReference& ext);
271 inline explicit Immediate(Handle<Object> handle); 271 inline explicit Immediate(Handle<Object> handle);
272 inline explicit Immediate(Smi* value); 272 inline explicit Immediate(Smi* value);
273 inline explicit Immediate(Address addr); 273 inline explicit Immediate(Address addr);
274 inline explicit Immediate(int x, RelocInfo::Mode rmode);
Yang 2016/03/03 06:21:56 If I understand correctly, we use this to embed an
gdeepti1 2016/03/03 18:00:10 Done.
274 275
275 static Immediate CodeRelativeOffset(Label* label) { 276 static Immediate CodeRelativeOffset(Label* label) {
276 return Immediate(label); 277 return Immediate(label);
277 } 278 }
278 279
279 bool is_zero() const { return x_ == 0 && RelocInfo::IsNone(rmode_); } 280 bool is_zero() const { return x_ == 0 && RelocInfo::IsNone(rmode_); }
280 bool is_int8() const { 281 bool is_int8() const {
281 return -128 <= x_ && x_ < 128 && RelocInfo::IsNone(rmode_); 282 return -128 <= x_ && x_ < 128 && RelocInfo::IsNone(rmode_);
282 } 283 }
283 bool is_int16() const { 284 bool is_int16() const {
(...skipping 1289 matching lines...) Expand 10 before | Expand all | Expand 10 after
1573 Assembler* assembler_; 1574 Assembler* assembler_;
1574 #ifdef DEBUG 1575 #ifdef DEBUG
1575 int space_before_; 1576 int space_before_;
1576 #endif 1577 #endif
1577 }; 1578 };
1578 1579
1579 } // namespace internal 1580 } // namespace internal
1580 } // namespace v8 1581 } // namespace v8
1581 1582
1582 #endif // V8_IA32_ASSEMBLER_IA32_H_ 1583 #endif // V8_IA32_ASSEMBLER_IA32_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698