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

Side by Side Diff: src/assembler.cc

Issue 8917014: Guard against undefined fields in global context. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address comments. Created 9 years 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/assembler.h ('k') | src/deoptimizer.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) 2011 Sun Microsystems Inc. 1 // Copyright (c) 2011 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 are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // 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 799 matching lines...) Expand 10 before | Expand all | Expand 10 after
810 } 810 }
811 811
812 812
813 ExternalReference ExternalReference::compute_output_frames_function( 813 ExternalReference ExternalReference::compute_output_frames_function(
814 Isolate* isolate) { 814 Isolate* isolate) {
815 return ExternalReference( 815 return ExternalReference(
816 Redirect(isolate, FUNCTION_ADDR(Deoptimizer::ComputeOutputFrames))); 816 Redirect(isolate, FUNCTION_ADDR(Deoptimizer::ComputeOutputFrames)));
817 } 817 }
818 818
819 819
820 ExternalReference ExternalReference::global_contexts_list(Isolate* isolate) {
821 return ExternalReference(isolate->heap()->global_contexts_list_address());
822 }
823
824
825 ExternalReference ExternalReference::keyed_lookup_cache_keys(Isolate* isolate) { 820 ExternalReference ExternalReference::keyed_lookup_cache_keys(Isolate* isolate) {
826 return ExternalReference(isolate->keyed_lookup_cache()->keys_address()); 821 return ExternalReference(isolate->keyed_lookup_cache()->keys_address());
827 } 822 }
828 823
829 824
830 ExternalReference ExternalReference::keyed_lookup_cache_field_offsets( 825 ExternalReference ExternalReference::keyed_lookup_cache_field_offsets(
831 Isolate* isolate) { 826 Isolate* isolate) {
832 return ExternalReference( 827 return ExternalReference(
833 isolate->keyed_lookup_cache()->field_offsets_address()); 828 isolate->keyed_lookup_cache()->field_offsets_address());
834 } 829 }
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after
1253 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position); 1248 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position);
1254 state_.written_position = state_.current_position; 1249 state_.written_position = state_.current_position;
1255 written = true; 1250 written = true;
1256 } 1251 }
1257 1252
1258 // Return whether something was written. 1253 // Return whether something was written.
1259 return written; 1254 return written;
1260 } 1255 }
1261 1256
1262 } } // namespace v8::internal 1257 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/assembler.h ('k') | src/deoptimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698