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

Side by Side Diff: src/x64/macro-assembler-x64.cc

Issue 148593004: A64: Synchronize with r18084. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 10 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
« no previous file with comments | « src/x64/macro-assembler-x64.h ('k') | src/x64/simulator-x64.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 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 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 } 398 }
399 399
400 if (emit_debug_code()) { 400 if (emit_debug_code()) {
401 Label ok; 401 Label ok;
402 cmpq(value, Operand(address, 0)); 402 cmpq(value, Operand(address, 0));
403 j(equal, &ok, Label::kNear); 403 j(equal, &ok, Label::kNear);
404 int3(); 404 int3();
405 bind(&ok); 405 bind(&ok);
406 } 406 }
407 407
408 // Count number of write barriers in generated code.
409 isolate()->counters()->write_barriers_static()->Increment();
410 IncrementCounter(isolate()->counters()->write_barriers_dynamic(), 1);
411
408 // First, check if a write barrier is even needed. The tests below 412 // First, check if a write barrier is even needed. The tests below
409 // catch stores of smis and stores into the young generation. 413 // catch stores of smis and stores into the young generation.
410 Label done; 414 Label done;
411 415
412 if (smi_check == INLINE_SMI_CHECK) { 416 if (smi_check == INLINE_SMI_CHECK) {
413 // Skip barrier if writing a smi. 417 // Skip barrier if writing a smi.
414 JumpIfSmi(value, &done); 418 JumpIfSmi(value, &done);
415 } 419 }
416 420
417 CheckPageFlag(value, 421 CheckPageFlag(value,
(...skipping 4633 matching lines...) Expand 10 before | Expand all | Expand 10 after
5051 j(equal, found); 5055 j(equal, found);
5052 movq(current, FieldOperand(current, Map::kPrototypeOffset)); 5056 movq(current, FieldOperand(current, Map::kPrototypeOffset));
5053 CompareRoot(current, Heap::kNullValueRootIndex); 5057 CompareRoot(current, Heap::kNullValueRootIndex);
5054 j(not_equal, &loop_again); 5058 j(not_equal, &loop_again);
5055 } 5059 }
5056 5060
5057 5061
5058 } } // namespace v8::internal 5062 } } // namespace v8::internal
5059 5063
5060 #endif // V8_TARGET_ARCH_X64 5064 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/macro-assembler-x64.h ('k') | src/x64/simulator-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698