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

Side by Side Diff: src/x64/full-codegen-x64.cc

Issue 39543003: Refactor loading a pointer and loading an integer64 into a register instructions for X64 (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Make movq(Register, int64_t) an assembler instruction for 64-bit integer only" Created 7 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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 } 308 }
309 309
310 310
311 void FullCodeGenerator::EmitProfilingCounterReset() { 311 void FullCodeGenerator::EmitProfilingCounterReset() {
312 int reset_value = FLAG_interrupt_budget; 312 int reset_value = FLAG_interrupt_budget;
313 if (info_->ShouldSelfOptimize() && !FLAG_retry_self_opt) { 313 if (info_->ShouldSelfOptimize() && !FLAG_retry_self_opt) {
314 // Self-optimization is a one-off thing; if it fails, don't try again. 314 // Self-optimization is a one-off thing; if it fails, don't try again.
315 reset_value = Smi::kMaxValue; 315 reset_value = Smi::kMaxValue;
316 } 316 }
317 __ movq(rbx, profiling_counter_, RelocInfo::EMBEDDED_OBJECT); 317 __ movq(rbx, profiling_counter_, RelocInfo::EMBEDDED_OBJECT);
318 __ movq(kScratchRegister, 318 __ Move(kScratchRegister, Smi::FromInt(reset_value));
319 reinterpret_cast<uint64_t>(Smi::FromInt(reset_value)),
320 RelocInfo::NONE64);
321 __ movq(FieldOperand(rbx, Cell::kValueOffset), kScratchRegister); 319 __ movq(FieldOperand(rbx, Cell::kValueOffset), kScratchRegister);
322 } 320 }
323 321
324 322
325 void FullCodeGenerator::EmitBackEdgeBookkeeping(IterationStatement* stmt, 323 void FullCodeGenerator::EmitBackEdgeBookkeeping(IterationStatement* stmt,
326 Label* back_edge_target) { 324 Label* back_edge_target) {
327 Comment cmnt(masm_, "[ Back edge bookkeeping"); 325 Comment cmnt(masm_, "[ Back edge bookkeeping");
328 Label ok; 326 Label ok;
329 327
330 int weight = 1; 328 int weight = 1;
(...skipping 4613 matching lines...) Expand 10 before | Expand all | Expand 10 after
4944 4942
4945 ASSERT_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), 4943 ASSERT_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(),
4946 Assembler::target_address_at(call_target_address)); 4944 Assembler::target_address_at(call_target_address));
4947 return OSR_AFTER_STACK_CHECK; 4945 return OSR_AFTER_STACK_CHECK;
4948 } 4946 }
4949 4947
4950 4948
4951 } } // namespace v8::internal 4949 } } // namespace v8::internal
4952 4950
4953 #endif // V8_TARGET_ARCH_X64 4951 #endif // V8_TARGET_ARCH_X64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698