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

Side by Side Diff: src/arm/assembler-arm.cc

Issue 2627543003: [wasm] Prerequisites for WebAssembly Table.Grow (Closed)
Patch Set: Rename update function Created 3 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
« no previous file with comments | « no previous file | src/arm64/assembler-arm64.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 5 // modification, are permitted provided that the following conditions
6 // are met: 6 // are 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 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 uint32_t RelocInfo::wasm_memory_size_reference() { 344 uint32_t RelocInfo::wasm_memory_size_reference() {
345 DCHECK(IsWasmMemorySizeReference(rmode_)); 345 DCHECK(IsWasmMemorySizeReference(rmode_));
346 return reinterpret_cast<uint32_t>(Assembler::target_address_at(pc_, host_)); 346 return reinterpret_cast<uint32_t>(Assembler::target_address_at(pc_, host_));
347 } 347 }
348 348
349 Address RelocInfo::wasm_global_reference() { 349 Address RelocInfo::wasm_global_reference() {
350 DCHECK(IsWasmGlobalReference(rmode_)); 350 DCHECK(IsWasmGlobalReference(rmode_));
351 return Assembler::target_address_at(pc_, host_); 351 return Assembler::target_address_at(pc_, host_);
352 } 352 }
353 353
354 uint32_t RelocInfo::wasm_function_table_size_reference() {
355 DCHECK(IsWasmFunctionTableSizeReference(rmode_));
356 return reinterpret_cast<uint32_t>(Assembler::target_address_at(pc_, host_));
357 }
358
354 void RelocInfo::unchecked_update_wasm_memory_reference( 359 void RelocInfo::unchecked_update_wasm_memory_reference(
355 Address address, ICacheFlushMode flush_mode) { 360 Address address, ICacheFlushMode flush_mode) {
356 Assembler::set_target_address_at(isolate_, pc_, host_, address, flush_mode); 361 Assembler::set_target_address_at(isolate_, pc_, host_, address, flush_mode);
357 } 362 }
358 363
359 void RelocInfo::unchecked_update_wasm_memory_size(uint32_t size, 364 void RelocInfo::unchecked_update_wasm_size(uint32_t size,
360 ICacheFlushMode flush_mode) { 365 ICacheFlushMode flush_mode) {
361 Assembler::set_target_address_at(isolate_, pc_, host_, 366 Assembler::set_target_address_at(isolate_, pc_, host_,
362 reinterpret_cast<Address>(size), flush_mode); 367 reinterpret_cast<Address>(size), flush_mode);
363 } 368 }
364 369
365 // ----------------------------------------------------------------------------- 370 // -----------------------------------------------------------------------------
366 // Implementation of Operand and MemOperand 371 // Implementation of Operand and MemOperand
367 // See assembler-arm-inl.h for inlined constructors 372 // See assembler-arm-inl.h for inlined constructors
368 373
369 Operand::Operand(Handle<Object> handle) { 374 Operand::Operand(Handle<Object> handle) {
370 AllowDeferredHandleDereference using_raw_address; 375 AllowDeferredHandleDereference using_raw_address;
(...skipping 4573 matching lines...) Expand 10 before | Expand all | Expand 10 after
4944 DCHECK(is_uint12(offset)); 4949 DCHECK(is_uint12(offset));
4945 instr_at_put(pc, SetLdrRegisterImmediateOffset(instr, offset)); 4950 instr_at_put(pc, SetLdrRegisterImmediateOffset(instr, offset));
4946 } 4951 }
4947 } 4952 }
4948 4953
4949 4954
4950 } // namespace internal 4955 } // namespace internal
4951 } // namespace v8 4956 } // namespace v8
4952 4957
4953 #endif // V8_TARGET_ARCH_ARM 4958 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/arm64/assembler-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698