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

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

Issue 10832342: Rename "global context" to "native context", (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 4 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 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 3306 matching lines...) Expand 10 before | Expand all | Expand 10 after
3317 Register global_object = rcx; 3317 Register global_object = rcx;
3318 #else 3318 #else
3319 ASSERT(ToRegister(instr->InputAt(0)).is(rdi)); 3319 ASSERT(ToRegister(instr->InputAt(0)).is(rdi));
3320 Register global_object = rdi; 3320 Register global_object = rdi;
3321 #endif 3321 #endif
3322 3322
3323 static const int kSeedSize = sizeof(uint32_t); 3323 static const int kSeedSize = sizeof(uint32_t);
3324 STATIC_ASSERT(kPointerSize == 2 * kSeedSize); 3324 STATIC_ASSERT(kPointerSize == 2 * kSeedSize);
3325 3325
3326 __ movq(global_object, 3326 __ movq(global_object,
3327 FieldOperand(global_object, GlobalObject::kGlobalContextOffset)); 3327 FieldOperand(global_object, GlobalObject::kNativeContextOffset));
3328 static const int kRandomSeedOffset = 3328 static const int kRandomSeedOffset =
3329 FixedArray::kHeaderSize + Context::RANDOM_SEED_INDEX * kPointerSize; 3329 FixedArray::kHeaderSize + Context::RANDOM_SEED_INDEX * kPointerSize;
3330 __ movq(rbx, FieldOperand(global_object, kRandomSeedOffset)); 3330 __ movq(rbx, FieldOperand(global_object, kRandomSeedOffset));
3331 // rbx: FixedArray of the global context's random seeds 3331 // rbx: FixedArray of the native context's random seeds
3332 3332
3333 // Load state[0]. 3333 // Load state[0].
3334 __ movl(rax, FieldOperand(rbx, ByteArray::kHeaderSize)); 3334 __ movl(rax, FieldOperand(rbx, ByteArray::kHeaderSize));
3335 // If state[0] == 0, call runtime to initialize seeds. 3335 // If state[0] == 0, call runtime to initialize seeds.
3336 __ testl(rax, rax); 3336 __ testl(rax, rax);
3337 __ j(zero, deferred->entry()); 3337 __ j(zero, deferred->entry());
3338 // Load state[1]. 3338 // Load state[1].
3339 __ movl(rcx, FieldOperand(rbx, ByteArray::kHeaderSize + kSeedSize)); 3339 __ movl(rcx, FieldOperand(rbx, ByteArray::kHeaderSize + kSeedSize));
3340 3340
3341 // state[0] = 18273 * (state[0] & 0xFFFF) + (state[0] >> 16) 3341 // state[0] = 18273 * (state[0] & 0xFFFF) + (state[0] >> 16)
(...skipping 1820 matching lines...) Expand 10 before | Expand all | Expand 10 after
5162 FixedArray::kHeaderSize - kPointerSize)); 5162 FixedArray::kHeaderSize - kPointerSize));
5163 __ bind(&done); 5163 __ bind(&done);
5164 } 5164 }
5165 5165
5166 5166
5167 #undef __ 5167 #undef __
5168 5168
5169 } } // namespace v8::internal 5169 } } // namespace v8::internal
5170 5170
5171 #endif // V8_TARGET_ARCH_X64 5171 #endif // V8_TARGET_ARCH_X64
OLDNEW
« src/heap.h ('K') | « src/x64/full-codegen-x64.cc ('k') | src/x64/macro-assembler-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698