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

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

Issue 2866008: [Isolates] Move contents of Top into Isolate.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: ensure we're synced Created 10 years, 6 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/ia32/frames-ia32.h ('k') | src/ia32/macro-assembler-ia32.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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 2572 matching lines...) Expand 10 before | Expand all | Expand 10 after
2583 } 2583 }
2584 2584
2585 2585
2586 void FullCodeGenerator::EmitGetFromCache(ZoneList<Expression*>* args) { 2586 void FullCodeGenerator::EmitGetFromCache(ZoneList<Expression*>* args) {
2587 ASSERT_EQ(2, args->length()); 2587 ASSERT_EQ(2, args->length());
2588 2588
2589 ASSERT_NE(NULL, args->at(0)->AsLiteral()); 2589 ASSERT_NE(NULL, args->at(0)->AsLiteral());
2590 int cache_id = Smi::cast(*(args->at(0)->AsLiteral()->handle()))->value(); 2590 int cache_id = Smi::cast(*(args->at(0)->AsLiteral()->handle()))->value();
2591 2591
2592 Handle<FixedArray> jsfunction_result_caches( 2592 Handle<FixedArray> jsfunction_result_caches(
2593 Top::global_context()->jsfunction_result_caches()); 2593 Isolate::Current()->global_context()->jsfunction_result_caches());
2594 if (jsfunction_result_caches->length() <= cache_id) { 2594 if (jsfunction_result_caches->length() <= cache_id) {
2595 __ Abort("Attempt to use undefined cache."); 2595 __ Abort("Attempt to use undefined cache.");
2596 __ mov(eax, Factory::undefined_value()); 2596 __ mov(eax, Factory::undefined_value());
2597 Apply(context_, eax); 2597 Apply(context_, eax);
2598 return; 2598 return;
2599 } 2599 }
2600 2600
2601 VisitForValue(args->at(1), kAccumulator); 2601 VisitForValue(args->at(1), kAccumulator);
2602 2602
2603 Register key = eax; 2603 Register key = eax;
(...skipping 647 matching lines...) Expand 10 before | Expand all | Expand 10 after
3251 // And return. 3251 // And return.
3252 __ ret(0); 3252 __ ret(0);
3253 } 3253 }
3254 3254
3255 3255
3256 #undef __ 3256 #undef __
3257 3257
3258 } } // namespace v8::internal 3258 } } // namespace v8::internal
3259 3259
3260 #endif // V8_TARGET_ARCH_IA32 3260 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/frames-ia32.h ('k') | src/ia32/macro-assembler-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698